I am currently trying to take the value from an HTML input (below)
and put it into a javascr
Make sure your script is executing after the DOM has fully loaded. To do this you can put your JS code in a function and call the function once the DOM has loaded, or just put your JS code at the end of your page, right before
.