Menu
Hi,
I’ve created a text box. I want that, if any any one type less then 7 character/numbers, then an alert box will be appeared-“Incorrect Number”. For that, I type these codes:
<form name=f1, action=”” value=post>
<input type =textbox, name=t1 onSubmit= “return val(true)”>
</form>
function vai(){
if(f1.t1.value.length < 7){
alert(“Incorrect Number”);
return false;
}
}
But, it’s not working. also no error are showing.
So, what’s wrong?