How do I find out if the users have checked any of the boxes with jQuery? Thanks.
<div id="boxes">
<input id='id1' type='checkbox'>
<input id='id2' type='checkbox'>
<input id='id3' type='checkbox'>
</div>
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.
The checked selector will select all checkboxes.
If you just want to know if any of them are checked, or how many, check the length of the selector. If it’s > 0, at least one checkbox is selected. However, if you only want one box checked at a time, consider using a radio button instead (which also uses the checked selector).