+ 1
How do I check whether a checkbox is checked in jQuery?
2 odpowiedzi
+ 1
https://www.tutorialrepublic.com/faq/how-to-check-a-checkbox-is-checked-or-not-using-jquery.php
Use prop() method to cheque this go through the above link
0
You can use the jQuery prop() method to check or uncheck a checkbox dynamically such as on click of button or an hyperlink etc.
$("#radio1").prop("checked", true);
To check the current state of the checkbox you must instead use the jQuery checked property . It is dynamically updated as the user checks/unchecks.
if(document.getElementById('radio1').checked) {
alert("Checked");
}
http://net-informations.com/jq/iq/checked.htm