Greetings,
I have a form with a drop down menu, and I am able to put an alert message in if the user does not select one of the given options...however, when I submit the form ... all the rest of the form input is sent to my email,
except for the option selected in the drop down menu
I am not sure where I am going wrong. Below is the
JS code...(part of the form validation function)
Code:
if(theForm.occasion.selectedIndex==0)
{
alert("Please select an Occasion.");
theForm.occasion.focus();
return (false);
}
where 'theForm' is the name of my form and 'occasion' is the select name for my drop down menu....see below for the code in the body section:
Code:
Occasion:
<select name="occasion">
<option value selected>-- SELECT --</option>
<option value>Wedding</option>
<option value>Birthday</option>
<option value>Other</option>
</select>
Help would be appreciated in getting it to work...thank you