184
rated 0 times
[
186]
[
2]
/ answers: 1 / hits: 49089
/ 10 Years ago, fri, september 19, 2014, 12:00:00
Im trying to modify the text of the first select option via javascript.
But it empties the entire select option
<select name='stuff'>
<option value=a> Pepsi </option>
<option value= b> Juice </option>
</select>
<script type=text/javascript>
document.getElementsByName('stuff')[0].innerHTML = Water;
</script>
More From » html