check to see if 1st option is selected

Viewed 22992

How would I check to see if the first option is selected and then execute some code.

Something like, if select box named "My_Saved_Shipping" has the 1st option selected then execute the code.

<select name="My_Saved_Shipping">
<option>Select/Enter Address</option>
<option value="1">text</option>
<option value="2">text2</option>
</select>
5 Answers
Related