How would you set the default value of a form <input>
text field in JavaScript?
18 s
This is one way of doing it:
document.getElementById("nameofid").value = "My value";