petenyce105
Programmer
I have a pop up window that searches a database. now i want the user to type in a min of three characters. i used this script but it passes the validation and dosent even validate
can someone help me?
<form method="post" name="registerForm" onsubmit="Nice()">
<script language="javascript">
function Nice(){
if (registerForm.Surname.length < 3)
{
alert("Enter more than three characters."
;
document.registerForm.Surname.focus();
return;
}
}
</script>
can someone help me?
<form method="post" name="registerForm" onsubmit="Nice()">
<script language="javascript">
function Nice(){
if (registerForm.Surname.length < 3)
{
alert("Enter more than three characters."
document.registerForm.Surname.focus();
return;
}
}
</script>