I have this validatation code. It works but for some reason after the alert box comes up saying a field needs to be input I hit ok then the form goes through its process I want to process to stop so I can go back and input into the field
any help would be appreciated
<script Language="JavaScript">
<!--
function Blank_TextField_Validator()
{
// from the form named form
if (form2.first.value == "")
{
alert("Please fill in the First Name.");
first.focus();
// return false to stop further processing
return (false);
}
// If text_name is not null continue processing
return (true);
}
-->
</script>
any help would be appreciated
<script Language="JavaScript">
<!--
function Blank_TextField_Validator()
{
// from the form named form
if (form2.first.value == "")
{
alert("Please fill in the First Name.");
first.focus();
// return false to stop further processing
return (false);
}
// If text_name is not null continue processing
return (true);
}
-->
</script>