Skip to main content

Bug Tracker

Side navigation

#10840 closed bug (invalid)

Opened November 21, 2011 09:13AM UTC

Closed November 21, 2011 07:35PM UTC

Last modified November 21, 2011 07:36PM UTC

$("input[type=radio]") also selects checkboxes.

Reported by: oystein.amundsen@bouvet.no 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

Attachments (0)
Change History (6)

Changed November 21, 2011 09:32AM UTC by oystein.amundsen@bouvet.no comment:1

Bug occurs for IE8 and less.

Changed November 21, 2011 02:29PM UTC by dmethvin comment:2

owner: → oystein.amundsen@bouvet.no
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.

Changed November 21, 2011 05:49PM UTC by anonymous comment:3

The following example will work in Firefox and Chrome, but not in IE8 and less: http://jsfiddle.net/KUTmS/1/

Changed November 21, 2011 07:08PM UTC by dmethvin comment:4

component: unfiledevent
milestone: None1.next
owner: oystein.amundsen@bouvet.nodmethvin
priority: undecidedhigh
status: pendingassigned

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

Changed November 21, 2011 07:35PM UTC by timmywil comment:5

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/

Changed November 21, 2011 07:36PM UTC by timmywil comment:6