jquery - check if checkbox is checked

other
voted: 0
vote
checkbox state

For check if checkbox is check selector ":checked" can be used.

$(document).ready(function () {
    if ($("#checkbox_id").is(":checked")) {
       //checkbox is checked
    }
    else if ($("#checkbox_id").is(":not(:checked)")) {
        //checkbox is not checked
    }
});
working url: not entered
version: not entered
Leave a Comment:
Characters left:
No comments yet.