Code: Select all
$(".chkox").checked(true);
Code: Select all
$(".chkox").selected(false);
How can I do it with jQuery?
Code: Select all
$(".chkox").checked(true);
Code: Select all
$(".chkox").selected(false);
Code: Select all
$('.chkbox').prop('checked', true); // checking
$('.chkox').prop('checked', false); // unchecking
Code: Select all
if($('#chk_id').is(':checked')) {
// checkbox checked
}
else {
// checkbox unchecked
}