Bug Tracker

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#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:
Blocked by: Blocking:

Description

This bug was found when upgrading from jQuery 1.6.1 to 1.7

Change History (6)

comment:1 Changed 8 years ago by oystein.amundsen@…

Bug occurs for IE8 and less.

comment:2 Changed 8 years ago by dmethvin

Owner: set to oystein.amundsen@…
Status: newpending

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 8 years 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 8 years ago by dmethvin

Component: unfiledevent
Milestone: None1.next
Owner: changed from oystein.amundsen@… to dmethvin
Priority: undecidedhigh
Status: pendingassigned

Simplified test case: http://jsfiddle.net/KUTmS/6/

comment:5 Changed 8 years ago by timmywil

Resolution: invalid
Status: assignedclosed

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'.

http://jsfiddle.net/timmywil/KUTmS/12/

Note: See TracTickets for help on using tickets.