Question and answer is powered by AnsPress.io
I need to check the checked
property of a checkbox .I want to perform an action based on the checked property using jQuery.
Try this !
<script type="text/javascript"> $get("#ageselected").checked == true; </script>
Use this code in your jQuery. ageselected is the field ID name.
You also try this code :-
<script type="text/javascript"> if($("#ageselected").is(':checked')){ $("#age").show(); } else{ $("#age").hide(); } </script>