mercredi 20 juin 2018

HTML checkbox "checked" attribute does not let unchecking on the page

When I am trying to use html checkbox "checked" property, the checkbox is initially checked on the page. However, I cannot uncheck it at all during the session. Here is the code I am talking about:

<input type="checkbox" id="coding" name="interest" value="coding" checked="true" />

When I set the "checked" property to "false", it is allowing changes (able to be checked and unchecked). Can anyone explain the reasons for that?




Aucun commentaire:

Enregistrer un commentaire