A simple script verification plug-in based on jquery is expected to help you. Some demos mainly use jquery and a custom property wl_check. The attributes are described as follows:
2. Keywords Need: mandatory limit for text input boxes
Regtype: Regular Expression type verification in the text input box
Minlen: minimum input length of the text input box
Maxlen: maximum input length of a text input box
Minval: the maximum value of the numeric text input box.
Maxval: the maximum value of the numeric text input box.
Notval: required in the drop-down list.
Minselect: Minimum number of options for a single check box
Maxselect: Maximum number of options for a single check box
...
3. Scope of use Input: text
Input: radio note that the id is '_ I'
Input: checkbox note that the id is '_ I'
Textarea
Select
4. Description 1. When the value of the Form Control with the wl_check attribute changes, the corresponding verification method is automatically called. This method does not return a value, but only prompts and locates an error.
2. During page post, you must first verify the Form Control with the wl_check attribute in a certain domain and return true; otherwise, a prompt message is displayed and the submission is canceled.
5. Usage example-see demo
It indicates that this text box is required and has a maximum of 10 words, at least 2 words
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.