When I click on my page in the checkbox the inside of checkbox is changed. I want to fix for one element if he is empty will be empty for all moment.
<td class="pad30">
<?php if($motifAbsence == 1) { ?>
<input type="checkbox" <?php if($isMotif = "Oui") echo 'checked="checked" '; ?> name="full" />
<?php } else { ?>
<input type="checkbox" name="empty" />
<?php } ?>
1. You can add onclick="return false;" onkeydown="return false;"
for that purpose:-
<input type="checkbox" name="empty" onclick="return false;" onkeydown="return false;"/>
2. You can use disabled="disabled"
also:-
<input type="checkbox" name="empty" disabled="disabled"/>
</div>