How do I to catch check/uncheck event of <input type="checkbox" /> with jQuery?
How do I to catch check/uncheck event of <input type=checkbox /> with jQuery?
Share
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.
Edit: Doing this will not catch when the checkbox changes for other reasons than a click, like using the keyboard. To avoid this problem, listen to
changeinstead ofclick.For checking/unchecking programmatically, take a look at Why isn't my checkbox change event triggered?