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.

Just you have to attach a class to any of your form elements, which you want to validate. Here’s a list of the default classes you can use.
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;
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.
You can define in which tag or class the errors should be displayed.
Supports cross browser compatibility.
For working demo click here
Share or Bookmark This Post With :
|
|
Posted On November 24th, 2009
very cool & good JS tool, thank you very much for sharing. can you tell me its author? |
Leave a Reply
- Tweetie – Twitter client for iPhone
- PDFCreator – free tool to create PDF files f...
- Pidgin – the universal chat client
- Skyfire – Free & Fastest mobile web bro...
- Google Apps phasing out support for Microsoft Inte...
- Poedit – cross-platform gettext catalogs (.p...
- PDFmyURL.com – Convert and save pdf from any...
- Gallery – open source web based photo album ...
- ShoZu – Social Media Hub for Your Mobile
- Widsets is now OVI store
- Send emails using PHPMailer an...
- Firefox Addons Essential for S...
- URL Rewriting for PHP Web Appl...
- Free SEO Tools From SEOMoz.org...
- Multiple Instances of Tomcat w...
- Apache 2.x + Tomcat 4.x + Load...
- Pagination in JSP/Java
- PHP – Mysql Open Source ...
- java.lang.OutOfMemoryError: Ja...
- HOW TO Subversion+Apache on Fe...





