Menu
×
×
Correct!
Exercise:Use HTML DOM to change the value of the input field.
<input type="text" id="myText" value="Hello">
<script>
document.getElementById("myText").value = "Have a nice day!";
</script>
Not CorrectClick here to try again. Correct!Next ❯<input type="text" id="myText" value="Hello"> <script> document.getElementById("myText")= "Have a nice day!"; </script> |