SyntaxFix
Write A Post
Hire A Developer
Questions
If the field for whatever reason only has a name attribute and nothing else, you can try this:
document.getElementsByName("INPUTNAME")[0].value = "TEXT HERE";