finding all checkboxes that are NOT checked

If I wanted to select all checkboxes that are selected, I could do this.

$('#mydiv input[type=checkbox]:checked')

Is there a similarly simple syntax that lets me select all the checkboxes that are NOT selected?


Hiya yep: demo


  The .not() method will end up providing you with more readable selections than pushing complex selectors or variables into a :not()

selector filter. In most cases, it is a better choice.

Hope this helps, :) cheers!

 $('#mydiv input[type=checkbox]:not(:checked)')

You won't believe it.

$('#mydiv input[type=checkbox]').not(':checked')

EDIT: Stackoverflow management, whats going on with the nuts CAPTCHA? Every single answer today requires me to enter a CAPTCHA code?

Need Your Help

Linking error when referencing a C++/CLI .exe project

visual-c++ visual-studio-2010 c++-cli linker

I'm using VS2010 and in my solution one of my C++/CLI projects references the other. But it can only link correctly when the project being referenced is compiled as a Static Lib.

Play Framework 2.0 schedules an Akka Actor at server launch

playframework-2.0 akka

I have an Akka actor that validates random data and makes some changes to it based on that data's show time and updates it. Currently what I'm doing is using this code inside a controller: