Thursday, March 7, 2013

Check whether checkbox is checked using Jquery on page load

 In the following example,
 isAgeSelected is a checkbox and txtAge may be anthing like textbox or div area.
$('#isAgeSelected').is(':checked') ? $("#txtAge").show() : $("#txtAge").hide();

No comments:

Post a Comment