hi,
my form combo box has a problem. the textbox in my combo box dropdown-textbox list does not validate any error at all. when i am pressing the submit button. when the fields have no given value the script that i embed does not validate the error at all. please help.
heres my code:
<script language=javascript>
function validateForm(otheragency)
{
if (document.otheragency.value =="")
{alert('Please fill in all required fields');
form.otheragency.disallowBlank();
return true;}
else if (document.otheragency.value=='agency')
{form.otheragency.disallowBlank();
return false;}
function validateForm(otherarea)
if (document.otherarea.value =="")
{alert('Please fill in all required fields');
form.otherarea.disallowBlank();
return true;}
else if (document.otherarea.value=='area')
{form.otherarea.disallowBlank();
return false;}
function validateForm(othersubject)
if (document.othersubject.value =="")
{alert('Please fill in all required fields');
form.othersubject.disallowBlank();
return true;}
else if (document.othersubject.value=='subject')
{form.othersubject.disallowBlank();
return false;}
}
<script>