ValidForm Check frame does not display error hints

Source: Internet
Author: User

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

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.