{"action":"opened","issue":{"url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1385","labels_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1385/labels{/name}","comments_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1385/comments","events_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1385/events","html_url":"https://github.com/jzaefferer/jquery-validation/issues/1385","id":55818610,"number":1385,"title":"rule('add') for an element overwriting rules for all previous elements","user":{"login":"soho737","id":10748021,"avatar_url":"https://avatars.githubusercontent.com/u/10748021?v=3","gravatar_id":"","url":"https://api.github.com/users/soho737","html_url":"https://github.com/soho737","followers_url":"https://api.github.com/users/soho737/followers","following_url":"https://api.github.com/users/soho737/following{/other_user}","gists_url":"https://api.github.com/users/soho737/gists{/gist_id}","starred_url":"https://api.github.com/users/soho737/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soho737/subscriptions","organizations_url":"https://api.github.com/users/soho737/orgs","repos_url":"https://api.github.com/users/soho737/repos","events_url":"https://api.github.com/users/soho737/events{/privacy}","received_events_url":"https://api.github.com/users/soho737/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-28T21:30:42Z","updated_at":"2015-01-28T21:30:42Z","closed_at":null,"body":"See: http://jsfiddle.net/1zmyof1a/\r\n\r\nIf i dynamically add rules like this:\r\n\r\n$(\"#someForm\").validate();\r\n$(\"#someInput\").rules(\"add\", {minlength: 4});\r\n$(\"#anotherInput\").rules(\"add\", {minlength: 8});\r\n\r\nthen the rule for someInput will be overwritten with the rule for \"anotherInput\".\r\n\r\nI preprared a little example in jsFiddle\r\n"}}