if(document.getElementById('isAgeSelected').checked) { $("#txtAge").show(); } else { $("#txtAge").hide(); } // or $('#isAgeSelected').click(function() { alert("checked!"); });