I have a form with an if statement, where in the case where a user has completed all the form related to the part of the registry, all the fields of the form, must be disabled.
The only field that I can't disable is the checkbox. Here is my code for disabling the other fields:
<?php if ($stato_ut=="REG"){ ?>
not complete
<?php }else{ ?>
<script type="text/javascript">
$(document).ready(function(){
$("#dati_utente :input").prop("disabled", true);
$("#dati_utente :button").hide();
});
</script>
#dati_utente
is the id for the form
checkbox input:
<input <?php if (!(strcmp($row_user_fe['disp_trasferimento_ut'],"S"))) {echo "checked";} ?> name="disp_trasferimento_ut" type="checkbox" id="disp_trasferimento_ut" value="S" data-plugin="switchery" data-color="#1bb99a"/>
All other fields are disabled correctly, how can I disable the checkbox?