I have the following drop-down:
<select id="#test">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
Now I am getting a value on document.ready
like:
var res = $('#someotherid').val();
which is 1,2 or 3.
Now I want this value automatically set in the drop-down.
Does anyone know how to do this?