Skip to main content

Bug Tracker

Side navigation

#12704 closed bug (notabug)

Opened October 11, 2012 01:05PM UTC

Closed October 15, 2012 04:02PM UTC

Last modified October 23, 2012 06:22PM UTC

:checked is considering drop down select also

Reported by: Owned by:
Priority: undecided Milestone: None
Component: selector Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:


<option value="0" selected="selected">Or</option>

<option value="1">And</option>



<option value="0">Or</option>

<option value="1">And</option>


<input type="checkbox" checked="checked" />

<input type="checkbox" />



alert($(':checked').length+ ' ' + $(':checkbox:checked').length+' '+$(':selected').length);




3 1 2


Attachments (0)
Change History (4)

Changed October 15, 2012 04:02PM UTC by timmywil comment:1

component: unfiledselector
keywords: → needsdocs
resolution: → notabug
status: newclosed

This is desired behavior and the design of the :checked selector.

However, this is a jQuery documentation issue. We will make an issue on

Changed October 15, 2012 08:07PM UTC by mikesherov comment:2

keywords: needsdocs

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

#12784 is a duplicate of this ticket.

Changed October 23, 2012 06:22PM UTC by timmywil comment:4

FYI, documentation issue has been opened here: