Resolve JQuery.Validate.js after calling form () method to obtain the validation rule modified by JS

Source: Internet
Author: User

Test to report a bug like this: Do not fill in a form of any content, and then click to save, this time must fill in the error will be prompted, and then select a checkbox, normally there is a corresponding text box is required, but this time and then click to save, The checkbox corresponds to a text box that does not have a required error, which means that no required:true this validation rule has been obtained to set the corresponding text box through the onchange event of the checkbox. Find the validation rule before the checkbox is selected through debug After the constant debug finally discovered is the project jQuery.metadata.js problem, metadata will judge whether has the cache data, some words directly returns the cache data, will not go to obtain the data in the HTML

The code that returns the cached data in the JQuery.metadata.js has been commented out:

var data = $.data (Elem, settings.single);
Returned cached data if it already exists
//if (data) Return data, note that the bank code guarantees that each fetch is the most current data and does not take the cached data.


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.