Issue
How would you set the default value of a form <input> text field in JavaScript?
Solution
This is one way of doing it:
document.getElementById("nameofid").value = "My value";
Answered By - James
8:32 AM forms, html, html-input, input, javascript No comments
How would you set the default value of a form <input> text field in JavaScript?
This is one way of doing it:
document.getElementById("nameofid").value = "My value";
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.