JSValidate - Javascript Form Validation

Tagged:  

JS Validate

JSValidate is a form validator that utilizes aspects of prototype and scriptaculous to bring you a simple to execute, non-intrusive javascript form validator. With minimal setup, your forms can be processing clean data in no time at all.

What sets JSValidate apart from other similar scripts is the simplicity of it's setup. Another important characteristic is the importance of browser compatibilty. JSValidate is run through very thorough browser tests to ensure it works on any platform with any browser.

Client-side form validation is great. It saves a trip to the server and it provides users with immediate feedback on the content the've entered into a form. JSValidate is a javascript library that can be incorporated in any of your existing forms, or any new forms, and can provide you with some slick Web 2.0 style validation (No More Alert Boxes!). After including the library in your page, it's as easy as assigning specific class names to your form elements to enable the validation. Here is a short list of the classes that can be assigned to your form fields:

jsrequired - Field must have some sort of value.
jsvalidate_number - Any integer; accepts decimal and negative
jsvalidate_digits - Only Numbers
jsvalidate_alpha - Only letters
jsvalidate_alphanum - Only letters, numbers, and underscores.
jsvalidate_email - Any valid email address.
jsvalidate_uscanzip - US or Canada Zip code; Accepts optional US zip + 4
jsvalidate_usstate - Any 2 letter uppercase state of the United States.
jsvalidate_usphone - US Phone Number, accepts most common formats.
jsvalidate_creditcard - Validates VISA, MasterCard, American Express; formats: no spaces, spaces, or dashes.
jsvalidate_ssn - Social Security Number in the format: XXXXXXXXX, XXX XX XXXX, or XXX-XX-XXXXX
select-notfirst - This class can be applied to select boxes (drop-downs). It prohibits the user from selecting the first option from the list.

Click here to visit the JSValidate Homepage.

Or Here to check out the demo

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <div> <blockquote> <object> <embed> <img> <param>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Copy the characters (respecting upper/lower case) from the image.