Kevin
03-02-2003, 12:09 AM
trying to use regexp against form elements like so...
function validate ()
{
var string = 12345;
var isAlpha = /^[a-z ]$/;
if( !isAlpha.document.forms.numbers.value)
alert (document.forms.numbers.value);
}
is this the right approach
thanx
Kevin
function validate ()
{
var string = 12345;
var isAlpha = /^[a-z ]$/;
if( !isAlpha.document.forms.numbers.value)
alert (document.forms.numbers.value);
}
is this the right approach
thanx
Kevin