I’m looking for that selector that is the inverse of :selected.
It has to select every checkbox that are not selected.
I have tired this way, but it does not worked:
$("#cont").find("input[type=checkbox]:not(:selected)")
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Selector
:selectedis used primarily for options in<select>. For checkboxes and radio buttons you should use:checkedselector.