Below is a dropdown list I am working with:
<select name="selSS1" id="select_value">
<option value="val0">sea zero</option>
<option value="val1">sea one</option>
<option value="val2">sea two</option>
<option value="val3">sea three</option>
<option value="val4">sea four</option>
</select>
I am looking to use JavaScript to dynamically select a value from this list:
This is what I tried so far:
document.getElementById('select_value').selected ="val3";
However, the code above does not seem to be functioning as expected. Any assistance would be greatly appreciated.