$(':checkbox').mouseenter(function(){ if($(this).prop('checked')) { $(this).prop('checked', false); } else{ $(this).prop('checked', true); } })