#8276 closed bug (duplicate)
FireFox 3.6.13 Selecting Form Checkboxes checked items
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | css | Version: | 1.5 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
in firefox it doesn't work
$("form :checked").css("border", "1px solid red");
Change History (4)
comment:1 Changed 12 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 Changed 12 years ago by
Component: | unfiled → css |
---|---|
Priority: | undecided → low |
Resolution: | worksforme |
Status: | closed → reopened |
comment:3 Changed 12 years ago by
Resolution: | → duplicate |
---|---|
Status: | reopened → closed |
Note: See
TracTickets for help on using
tickets.
Thanks for submitting a ticket to the jQuery Bug Tracker!.
As per our API documentation on :checked, this selector only works correctly for checkbox and radio elements. In your example you're trying to directly use :checked on a form which isn't supported. The correct way to use this would be selecting the input elements by doing something like $('form input:checked'). I've created a minimal fiddle example to demonstrate correct usage here (which does work fine in both latest Chrome and Firefox 3.6.13) Live Test Case.