Keep checked checkbox by default

5

How can I make my checkbox appear checked for everyone who logs in to the site once it has been checked? I'm creating in the html field of wix, free version.

The code model I'm using is as follows

<form name=myform>
  <input type="checkbox" name=mybox value="1">Trocar  a água dos balde<br>
  <input type="checkbox" name=mybox value="2">Verificar balheiro<br>
  <input type="checkbox" name=mybox value="3">Espirrar herbal<br>
</form>
    
asked by anonymous 05.03.2015 / 03:19

1 answer

5

To make the checkbox checked by default, simply add the checked attribute to the element.

Example:

    <form name=myform>
      <input type="checkbox" name=mybox value="1" checked>Trocar  a água dos balde<br>
      <input type="checkbox" name=mybox value="2">Verificar balheiro<br>
      <input type="checkbox" name=mybox value="3" checked>Espirrar herbal<br>
    </form>
    
05.03.2015 / 03:23