how to read a checkbox already checked ON? : <form method="post"><div class="switch"><label>Off
<input type="checkbox" name="test1" onclick="this.form.submit()"checked="checked"><span class="lever" ></span>On
</label>

  
hi
i have this code on materialize
it`s working, but when the button is already checked, won`t work for some reason

so, if there is :
<input type="checkbox" name="test1" onclick="this.form.submit()" checked="checked">

there will be the lever ON but when i click it off it won`t submit the form
any help is really appreciate 
Thank you


