Christiana
Technical User
Hi you all!
I'm using this way to call a JScript function which validates the form.
<form action="add.asp" method="post" name="Add" onsubmit="return Form_Validator(this)">
and here's the function
<script Language="JavaScript"><!--
function Form_Validator(theForm)
{
if (theForm.Text1.selectedIndex == 0)
{ alert("The selection for Text is not valid."
;
theForm.Text1.focus();
return (false);}
return (true);
}
//--></script>
It works fine with IE but not with Netscape. (I use Net. 6)
PLS HELP
Thanks in advance
I'm using this way to call a JScript function which validates the form.
<form action="add.asp" method="post" name="Add" onsubmit="return Form_Validator(this)">
and here's the function
<script Language="JavaScript"><!--
function Form_Validator(theForm)
{
if (theForm.Text1.selectedIndex == 0)
{ alert("The selection for Text is not valid."
theForm.Text1.focus();
return (false);}
return (true);
}
//--></script>
It works fine with IE but not with Netscape. (I use Net. 6)
PLS HELP
Thanks in advance