vendredi 27 novembre 2020

Why can not create checkbox with variable in my jsp?

I want to create checkbox with a boolean variable like this.

<!DOCTYPE html>
<html>
  <head>
    <script>
      var enabled = false;
    </script>
  </head>

  <body>

    <input type="checkbox" checked=enabled>

  </body>
</html>

But the checkbox is created with checked status.




Aucun commentaire:

Enregistrer un commentaire