I've created a table here with html.
<tr id='addr0'>
<td>1</td>
<td>
<input type="text" id='word0' placeholder='Word'
value="Abhor" class="form-control" />
</td>
<td>
<input type="text" id='definition0' placeholder='Definition'
value="regard with disgust and hatred." class="form-control" />
</td>
<td>
<input type="text" id='synonym0' placeholder='Synonyms'
value="detest, hate" class="form-control" />
</td>
</tr>
<tr id='addr1'></tr>
How can I use java script to add an array or variables in the text areas. I looked around and none of the code I found worked.
this is what i've tried:
<script>
document.getElementById("synonym0").innerHTML = "Test";
</script>