Answers for "jq code for checkbox"

9

jquery check checkbox

$('.myCheckbox').prop('checked', true);
$('.myCheckbox').prop('checked', false);
Posted by: Guest on May-19-2020
0

jquery checkbox

if($("#isAgeSelected").is(':checked'))
    $("#txtAge").show();  // checked
else
    $("#txtAge").hide();  // unchecked
Posted by: Guest on November-23-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language