You could try the followings in both ways:
var getVal=$('#isAgeSelected').is(":checked"); // jQuery
var getVal=document.getElementById("isAgeSelected").checked //JavaScript
if (getVal==true) {
$("#txtAge").show(); // checked
} else {
$("#txtAge").hide(); // unchecked
}