Checked/Unchecked a checkbox:
html:
<input type="checkbox" id="overAges">OverAges
Using jQuery:
$("#overAges").click(function(){
if($(this).prop("checked")==true){
console.log('Checked');
} else{
console.log("Unchcked");
}
});
html:
<input type="checkbox" id="overAges">OverAges
Using jQuery:
$("#overAges").click(function(){
if($(this).prop("checked")==true){
console.log('Checked');
} else{
console.log("Unchcked");
}
});
Comments
Post a Comment