If you select the option with id="second" you will be switched back to the option with id="first".
Anyone know how to do this with onclick?
<select id="switchback">
<option id="first" value="one">Switch back to first option?</option>
<option id="second" value="two" onclick="...">Yes</option>
</select>
Note: cannot use jQuery.
If you do want the select to automatically revert to first option, you can do this :
Demonstration
But what is the point in proposing a
select, then ? Note that you maybe you’d prefer to disable it :Demonstration
This second solution is clearer for most users.