sybil6
10-10-2008, 09:12 PM
i would like to perform a form validation so the user cannot enter \t (tab horyz) (space bar) is it possible to do without regular expressions,i got someting like this this:
if(document.form1.nom.value.length==0 || document.form1.nom.value=='\x00' ){
errmsg3();
return false;
}
the \x00 value is what represents \t in hexadecimal i think, so i am tryng to do the validation this way but does not work.
if(document.form1.nom.value.length==0 || document.form1.nom.value=='\x00' ){
errmsg3();
return false;
}
the \x00 value is what represents \t in hexadecimal i think, so i am tryng to do the validation this way but does not work.