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
You can use:
if(document.getElementById('isAgeSelected').checked) $("#txtAge").show(); else $("#txtAge").hide();
if($("#isAgeSelected").is(':checked')) $("#txtAge").show(); else $("#txtAge").hide();
Both of them should work.