Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

75 users online



match method

match method

Currently viewing this thread: 1 (0 members and 1 guests)


alsaffar

alsaffar

Neverside Newbie
Status: Offline!

URGENT: match method

Hi there,

I'm lost in the 'match' method Smile I read and read and read about it but STILL can not figure how to build the argument of the characters to be compared!

I want the text input box to accept only english characters and numbers and a dash, how can I do it? Following is a part from my script:

CompareArgument = /-|[abcdefghijklmnopqrstuvwxyz]|[1234567890]/;

if (TextInput.value.match(CompareArgument))
alert ('OK');
else
alert ('NOT');

Please help.

If you need the full script please tell me Smile

Thanx in advance Wink

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0156 seconds.