I'm working on a little project, and I would like some help on how to dynamically change the value of an input field on this page. It's the input under the "Which school has the most school spirit?" field. For whatever reason, i'm having trouble just using javascript to identify the specified input element. I have'nt wrote javascript in awhile so I (hopefully) might just be missing something.
This is what I had (But it wasn't working):
document.getElementsByClassName("PDF_QT100")[0].children[0].value = "school"
Edit-
And this is the Error I recieve when I run the code on the page in Google Chrome's console:
TypeError: Cannot read property 'children' of undefined