Friday, 23 August 2013

Switch the value appearing in Select Tag

Switch the value appearing in Select Tag

How to switch the value appearing in this select tag example...
If I've selected one in list the value that will appear is 1, if I've
selected two the value appearing in select box will be 2. How should I do
that? Do I need a javascript or something to be add in select tag?
<select name="test" id="test">
<option value="1">one</option>
<option value="2">two</option>
<option value="3">three</option>
</select>

No comments:

Post a Comment