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