Alert if no option selected.
I'm trying to modify the following script...
<form onsubmit="open(this.url.value,'','');return false;">
<option value ="http://www.yahoo.com">Yahoo</option>
<option value ="http://www.google.com">Google</option>
<option value ="http://www.apple.com">Apple</option>
<input type="submit" name="get" value="Go">
The script is working fine, but I want it to give an alert if they try to submit the form without choosing an option. In other words, select Yahoo and you go to Yahoo. But if you leave it on "Please select..." and press "go you get an alert saying "please select an option".
Thanks for your help!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)