views:

41

answers:

1

Hi all,

I know there's the jQuery validation plugin. But I don't need something that extensive.

All I want to do is have jQuery check a name text box:

<input type="text" name="name" id="name" />

To make sure that it has at least 2 characters

AND

I want jQuery to check a phone text box (identical to the name text box, name="phone" and id="phone"), to make sure that it only contains numbers, doesn't matter how many numbers.

Finally, and this is only if this is not too hard to accomplish, I want jQuery to validate the email address to check and make sure that it has the character '@' in it.

Is this too hard to do?

Thanks, Amit

A: 

If the jQuery validation plugin is too extensive, here's an even simpler one.

ghoppe