Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to see if checkbox is checked

if(document.getElementById('isAgeSelected').checked) {
    $("#txtAge").show();
} else {
    $("#txtAge").hide();
}

// or

$('#isAgeSelected').click(function() {
    alert("checked!");
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #checkbox #checked
ADD COMMENT
Topic
Name
2+1 =