bgreenhouse
Technical User
Hi everyone
My latest problem is this. I have made a form with pull-down menus, and given the initial option (--) the value "null". When I write the following script to vaildate the form, it works in the browser preview of HomeSite, but not in Netscape (I don't think I've checked it in Explorer. Any suggestins as to why?
function processForm5() {
form5 = document.forms.questions4
if(form5.purchases.value =="null"
{
alert("Please let us know how many times you made a purchase on-line last year"
return;
}
else if(form5.amountspent.value =="null"
{
alert("Please let us know approximately how much you spent on-line last year"
return;
}
and then on to submit....
Ben
My latest problem is this. I have made a form with pull-down menus, and given the initial option (--) the value "null". When I write the following script to vaildate the form, it works in the browser preview of HomeSite, but not in Netscape (I don't think I've checked it in Explorer. Any suggestins as to why?
function processForm5() {
form5 = document.forms.questions4
if(form5.purchases.value =="null"
{
alert("Please let us know how many times you made a purchase on-line last year"
return;
}
else if(form5.amountspent.value =="null"
{
alert("Please let us know approximately how much you spent on-line last year"
return;
}
and then on to submit....
Ben