Answers for "jquery change input value to false"

1

how to change checkbox state in jquery

$('[name="SelectedGroup"]').prop('checked', true);
Posted by: Guest on December-17-2020
0

checkbox default value and checked value get in jquery

//selected checkbox alert boolen value return
$('#test').click(function() {
    alert("Checkbox state (method 1) = " + $('#test').prop('checked'));
    alert("Checkbox state (method 2) = " + $('#test').is(':checked'));
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
Check me: <input id="test" type="checkbox" />
  //@sujaY
Posted by: Guest on October-22-2020

Code answers related to "jquery change input value to false"

Code answers related to "Javascript"

Browse Popular Code Answers by Language