I need validate that a form field does not begin with a number.
In Perl this would be something like:
variable =~ /^\d/
The code will be similar to this:
if ([field begins with number code])
{
alert("Field cannot begin with a number."
;
theForm.field.focus();
return (false);
}
Any help is appreciated.
Thanks
In Perl this would be something like:
variable =~ /^\d/
The code will be similar to this:
if ([field begins with number code])
{
alert("Field cannot begin with a number."
theForm.field.focus();
return (false);
}
Any help is appreciated.
Thanks