Ticket #10840 (closed bug: invalid)
$("input[type=radio]") also selects checkboxes.
| Reported by: | oystein.amundsen@… | Owned by: | dmethvin |
|---|---|---|---|
| Priority: | high | Milestone: | 1.next |
| Component: | event | Version: | 1.7 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
This bug was found when upgrading from jQuery 1.6.1 to 1.7
Change History
comment:2 Changed 19 months ago by dmethvin
- Owner set to oystein.amundsen@…
- Status changed from new to pending
Works for me in IE7:
http://jsfiddle.net/dmethvin/ktWbC/
Can you reply quickly with a broken test case? Otherwise this won't have any chance of being fixed in 1.7.1.
comment:3 Changed 19 months ago by anonymous
The following example will work in Firefox and Chrome, but not in IE8 and less: http://jsfiddle.net/KUTmS/1/
comment:4 Changed 19 months ago by dmethvin
- Owner changed from oystein.amundsen@… to dmethvin
- Priority changed from undecided to high
- Status changed from pending to assigned
- Component changed from unfiled to event
- Milestone changed from None to 1.next
Simplified test case: http://jsfiddle.net/KUTmS/6/
comment:5 Changed 19 months ago by timmywil
- Status changed from assigned to closed
- Resolution set to invalid
It is invalid to give the checkbox the same name as the radios and as you can see, IE no likey. jQuery is not the issue here, but we recommend using http://api.jquery.com/prop to programmatically change the value of 'checked'.
comment:6 Changed 19 months ago by timmywil
With prop: http://jsfiddle.net/timmywil/KUTmS/13/
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Bug occurs for IE8 and less.