Simplevalidate Simple verification plug-in based on jquery

Source: Internet
Author: User

  Simple Verification plug-in simplevalidate use experience, based on jquery, modify small bugs can be compatible with the browser, with your own version for download

If you do not need to do onfocus and onblur real-time verification, if you do not want to each table through JS to define validation rules, if you only need to submit a validation and feedback, if you like the simple code structure, I think simplevalidate is a good choice.   from the point of view and download, this plugin is not very popular, but it does not matter, it is my dish. Download the address at the bottom, open source, demo is very detailed, quite easy to get started. The original does not support IE because the comma and length of JSON is a matter of reserved words, repair method is to all "}" before the unnecessary comma deleted, variable length instead of other variable name, I changed one, and the content of the hint to the Chinese, is currently in use, no other bugs found, Download Address: jquery.simple.validation.js   Define Data-rules properties: Use the number "#" to distinguish multiple validation rules, with the plus "+" with the validation of contrast values, with the horizontal bar "-" with the feedback item title, the following basic wording     Code as follows: <input type= "text" name= "email" value= "@" data-rules= "Mailbox-required# mailbox-valid_email"/> < Input name= "password" id= "txt_pass" type= "password" data-rules= "Password-min_length+8# password-max_length+16"/> <input Name= "Password2" type= "password" data-rules= "Confirm password-matches+txt_pass+ password"/>     define all form to be validated before submitting:   & nbsp   Code as follows: $ (' form '). Bind (' Submit ', function () {    var message=$ (this). Validate ();     if (message !==true) {        alert (message),         return false;    }   &NB Sp RetuRN true; });    

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.