I need to check the checked property of a checkbox and perform an action based on the checked property using jQuery.
checked
For example, if the age checkbox is
Use:
UDB Prasad
$('input#abc').click(function(){ if($(this).is(':checked')) { var checkedOne=$(this).val() alert(checkedOne); // Do some other action } })
This can help if you want that the required action has to be done only when you check the box not at the time you remove the check.