ValidForm a line of code to complete all validation

Source: Internet
Author: User

ValidForm a line of code to complete all validation

When you want to change the prompt effect to the right side of the prompt but has not been successful

TipType can be 1, 2, and custom functions. 2 indicates the right prompt.

Note: TipType is 2 o'clock, each form element corresponds to the object that displays the cue information, and is found in the child of Next () in the parent of the current element.

TipType
The available values are: 1, 2, 3, 4, and function functions, with the default TipType of 1. 3, 4 is 5.2.1 version added
1=> a custom popup prompt;
2=> side hint (the object that displays the cue information will be found at the child of the next object in the parent of the current element, and the form will bounce out of the definition prompt when Ajax is submitted to show the form submission status);
3=> side hints (the object in the current element's siblings object that displays the cue information, the form will bounce out of the definition prompt when Ajax is submitted to show the status of form submission);
4=> side hints (the object that displays the cue information is found under the next object in the parent of the current element, and the form does not show the submission status of the form when it is submitted as Ajax);

So the feasible way:

 <TDclass= "TR">EMAIL:</TD> <TD><inputtype= "text"name= "Customtest"class= "text"placeholder= "Please enter email"Ajaxurl= "<%=contextpath%>/checkusermessage.action"datatype= "E"nullmsg= "Please enter your usual email address"errormsg= "Mailbox format is incorrect" /></TD><TDcolspan= "3">     <Divclass= "Validform_checktip">        <span></span>    </Div></TD>

ValidForm a line of code to complete all validation

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.