how do i check if jquery checkbox is checked

Solutions on MaxInterview for how do i check if jquery checkbox is checked by the best coders in the world

showing results for - "how do i check if jquery checkbox is checked"
Josefina
09 Jul 2016
1$('#isAgeSelected').click(function() {
2    $("#txtAge").toggle(this.checked);
3});
4<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js">
5  </script>
6<input type="checkbox" id="isAgeSelected"/>
7<div id="txtAge" style="display:none">Age is something</div>