I need to validate a field in a form (isNumber in the following example) with all numbers and characters from a-z (both in upper and lowercase)
I am trying to use the following regular expression in my JS function :-
flag0=0;
var regExp= /[A-Za-z0-9]*/;
if(!(regExp.test(isNumber)))
{
alert("invalid number");
flag0=1;
}
but this is not working
Please help
Bookmarks