Sol:
Tested
Make a checked checkbox to uncheck in jQuery
<input type="checkbox" class="myClass" checked>Player1
<input type="checkbox" class="myClass" checked>Player2
<input type="checkbox" class="myClass" checked>Player3
<input type="checkbox" class="myClass" checked>Player4
Suppose these above check-boxes are showing checked then
Just write the below code in your script. See the results;
$(".myClass").removeAttr("checked");
Tested
Make a checked checkbox to uncheck in jQuery
Just take the id/class of the element and use the removeAttr function of jQuery
<input type="checkbox" class="myClass" checked>Player1
<input type="checkbox" class="myClass" checked>Player2
<input type="checkbox" class="myClass" checked>Player3
<input type="checkbox" class="myClass" checked>Player4
Suppose these above check-boxes are showing checked then
Just write the below code in your script. See the results;
$(".myClass").removeAttr("checked");
Comments
Post a Comment