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.
Please, use this jsfiddle http://jsfiddle.net/J7Quh/3/