Javascript form verification-Parsley. js use and configuration _ javascript skills

Source: Internet
Author: User
We still remember the jquery plug-in for form verification that we once introduced. validationEngine; Parsley introduced by the day can also help you only use simple configuration to implement the form verification function, based on its powerful DOM-API, interested you can not miss it Online Demo
You can still remember the jquery. validationEngine plug-in that we have introduced. Using this plug-in, you can generate a powerful form verification function without having to write any line of js Code. Is it amazing? The introduction of Parsley today also helps you implement form verification only with simple configuration, based on its powerful DOM-API.

Main features
• Superb User Experience
• Super convenient configuration
• Ultra-lightweight (12 K after compression), supporting jQuery and Zepto
• Super simple, just a simple configuration of DOM-API, similar to jQuery's data API
• Absolutely free
• Excellent reliability

Built-in verification
• Required: required input
• Not blank: cannot be blank
• Min length: Minimum length
• Max length: Maximum length
• Range length: length Interval
• Min: Minimum value
• Max: Maximum Value
• Range: region value
• RegExp: Regular Expression
• Equal To: Equal
• Min check: check the minimum number of checkboxes selected
• Max check: check the maximum number of checkboxes selected
• Range check: check the number of checkbox intervals.
• Remote: ajax Verification
It is very easy to use and configure Parsley. js. You only need to use the HTML data attribute to configure html, as shown below:

The Code is as follows:




Is it very convenient and the documentation is very complete, but if you need to use Chinese, you need to localize it yourself. I believe that if you have used it, you will certainly like it!
Related Article

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.