Today to do front-end verification, found ValidForm this framework in the project has, so on-line search, began to use, Online said, well, just write a code can be used
$ ("#itemForm"). ValidForm ();
So I wrote this sentence, then set the datatype rule, and the ERRORMSG error hint, and add the next element
<label class= "Validform_checktip" ></label>
But how also out of the wrong hint, the heart of this nasty ah, tried a lot of methods are not, the last online check, the original to display hints, to set the parameters when initializing
TipType the values available for this property are: 1, 2, 3, 4, and function functions, and the default TipType is 1. 3, 4 is 5.2.1 version added
1 customizing popup prompts;
2 Side hints (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 that displays the cue information is found in the siblings object of the current element, and the form will bounce out of the definition prompt when Ajax commits to display the form submission status);
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 in AJAX submissions);
Then change to
Top.theform = $ ("#itemForm"). ValidForm ({tiptype:3});
Other page calls
Top.theForm.check ();
Come on!
ValidForm Check frame does not display error hints