uncheck checkbox on page refresh

<script type="text/javascript">
$(document).ready(function(){
$(':checkbox:checked').prop('checked',false);
</script> 
 
Use prop instead:
$(':checkbox:checked').prop('checked',false);
or removeAttr:
$(':checkbox:checked').removeAttr('checked');
 

Comments

Popular posts from this blog

Script For Login, Logout and View Using PHP, MySQL and Bootstrap

Hyperledger Development with in 10 days — Day 6

Insert CheckBox and Radio button Data in MySQL Database Using PHP