I need to check the checked property of a checkbox and perform an action based on the checked property using jQuery.
checked
For example, if the age checkbox is
jQuery 1.6+
$('#isAgeSelected').prop('checked')
jQuery 1.5 and below
$('#isAgeSelected').attr('checked')
Any version of jQuery
// Assuming an event handler on a checkbox if (this.checked)
All credit goes to Xian.