I have an html text input that I am trying to change the content of via an if statement – other actions within the if statement are occurring which tells me the if statement is reaching this action however the content is not changing as directed – is there an error in my code?
HTML:
<input id="quest17" class="tb8" type="text" name="quest[17]" value="" size="40">
JavaScript:
document.getElementById('quest17').innerHTML = "new content";
is the problem because I also have a class? if so any way around it… I am honestly at a loss here.
Try
.valueinstead of .innerHTML