Skip to main content

Bug Tracker

Side navigation

#12784 closed bug (duplicate)

Opened October 23, 2012 08:39AM UTC

Closed October 23, 2012 06:21PM UTC

Selector :checked selects not only checkboxes and radio buttons like mentioned in docs

Reported by: romull@mail.ru Owned by:
Priority: undecided Milestone: None
Component: selector Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:
Description

It's possible that claims stated in the jQuery dos are inconsistent, but usage of the :checked selector yields incorrect results if on the queried ''form'' element resides ''select'' element while documentation is saying that:

''The :checked selector works for checkboxes and radio buttons. For select elements, use the :selected selector.''

Working code snippet is here: http://jsfiddle.net/J7Quh/1/

This behaviour can be reproduced on versions 1.6.4 ... 1.8.2.

Attachments (0)
Change History (2)

Changed October 23, 2012 08:42AM UTC by romull@mail.ru comment:1

Please, use this jsfiddle http://jsfiddle.net/J7Quh/3/

Changed October 23, 2012 06:21PM UTC by timmywil comment:2

component: unfiledselector
resolution: → duplicate
status: newclosed

Duplicate of #12704.