title: Disable checkbox
body: <p>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.</p>
  
  <p>The only field that I can't disable is the checkbox. Here is my code for disabling the other fields:</p>
  
  <pre><code>&lt;?php if ($stato_ut=="REG"){  ?&gt;
  not complete
  &lt;?php }else{ ?&gt;
  &lt;script type="text/javascript"&gt;
      $(document).ready(function(){
          $("#dati_utente :input").prop("disabled", true);
          $("#dati_utente :button").hide();
      });
  &lt;/script&gt;
  </code></pre>
  
  <p><code>#dati_utente</code> is the id for the form</p>
  
  <p>checkbox input: </p>
  
  <pre><code>&lt;input &lt;?php if (!(strcmp($row_user_fe['disp_trasferimento_ut'],"S"))) {echo "checked";} ?&gt; name="disp_trasferimento_ut" type="checkbox" id="disp_trasferimento_ut" value="S" data-plugin="switchery" data-color="#1bb99a"/&gt; 
  </code></pre>
  
  <p>All other fields are disabled correctly, how can I disable the checkbox?</p>