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; });