{"action":"closed","issue":{"url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1285","labels_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1285/labels{/name}","comments_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1285/comments","events_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1285/events","html_url":"https://github.com/jzaefferer/jquery-validation/issues/1285","id":45006749,"number":1285,"title":"Settings unable to be overwritten/errorContainer eagerly initialized into jQuery object causing issues when DOM element is disposed and recreated later","user":{"login":"kappasims","id":2243031,"avatar_url":"https://avatars.githubusercontent.com/u/2243031?v=3","gravatar_id":"","url":"https://api.github.com/users/kappasims","html_url":"https://github.com/kappasims","followers_url":"https://api.github.com/users/kappasims/followers","following_url":"https://api.github.com/users/kappasims/following{/other_user}","gists_url":"https://api.github.com/users/kappasims/gists{/gist_id}","starred_url":"https://api.github.com/users/kappasims/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kappasims/subscriptions","organizations_url":"https://api.github.com/users/kappasims/orgs","repos_url":"https://api.github.com/users/kappasims/repos","events_url":"https://api.github.com/users/kappasims/events{/privacy}","received_events_url":"https://api.github.com/users/kappasims/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-10-06T16:53:34Z","updated_at":"2015-06-28T19:55:16Z","closed_at":"2015-06-28T19:55:16Z","body":"StackOverflow post here:\r\nhttp://stackoverflow.com/questions/26219711/jquery-validate-redefine-registration-settings-after-initial-call-to-validate\r\n\r\nI ran into an issue where the validator's settings can't be changed once the plugin is initialized (if the form data exists no initialization occurs and the previously-set data is returned) causing an issue when I dispose and recreate the errorContainer element. The errorContainer element is eagerly selected on initialization, and when I asynchronously reload the content containing the error container, the jQuery object doesn't get updated to point to the loaded errorContainer and the validations don't show up in the container.\r\n\r\nI would like to request that either:\r\na) settings can be added/removed/modified by successive calls to the plugin as needed to update references/modify only a subset of rules when dealing with dynamic content\r\nor\r\nb) the errorContainer selection and conversion to a jQuery object does not occur until the time of validation so as not to get a stale reference to the element\r\n\r\n"}}