Skip to main content

Bug Tracker

Side navigation

#8276 closed bug (duplicate)

Opened February 15, 2011 06:59AM UTC

Closed February 15, 2011 01:35PM UTC

Last modified February 15, 2011 01:35PM UTC

FireFox 3.6.13 Selecting Form Checkboxes checked items

Reported by: s.hamed.afghan@gmail.com 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");

Attachments (0)
Change History (4)

Changed February 15, 2011 07:22AM UTC by addyosmani comment:1

resolution: → worksforme
status: newclosed

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.

Changed February 15, 2011 01:34PM UTC by jitter comment:2

component: unfiledcss
priority: undecidedlow
resolution: worksforme
status: closedreopened

Changed February 15, 2011 01:35PM UTC by jitter comment:3

resolution: → duplicate
status: reopenedclosed

Changed February 15, 2011 01:35PM UTC by jitter comment:4

Duplicate of #8278.