Bug Tracker

Modify

Ticket #10840 (closed bug: invalid)

Opened 19 months ago

Last modified 19 months ago

$("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:1 Changed 19 months ago by oystein.amundsen@…

Bug occurs for IE8 and less.

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

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

comment:6 Changed 19 months ago by timmywil

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.