Hi!
I'm quite new with this web development. I have a problem to validate a form that if the user selected 'other' in the dropdown list, they need to key in something in another text field form. Here's my javascript:
if (theForm.Univer sity1a.value == "Other" *can we put something here?* theForm.Univers ity1.value == "")
{
alert("You have selected Other. Please enter a value for the \"University \" field.");
theForm.Univers ity1.focus();
return (false);
}
Thanks in advance!
I'm quite new with this web development. I have a problem to validate a form that if the user selected 'other' in the dropdown list, they need to key in something in another text field form. Here's my javascript:
if (theForm.Univer sity1a.value == "Other" *can we put something here?* theForm.Univers ity1.value == "")
{
alert("You have selected Other. Please enter a value for the \"University \" field.");
theForm.Univers ity1.focus();
return (false);
}
Thanks in advance!
Comment