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