{"action":"closed","issue":{"url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/962","labels_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/962/labels{/name}","comments_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/962/comments","events_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/962/events","html_url":"https://github.com/jzaefferer/jquery-validation/issues/962","id":24894501,"number":962,"title":"Bug on \"resetForm\" when form is hidden.  class=\"error\" isn't removed","user":{"login":"mardinator","id":6287818,"avatar_url":"https://avatars.githubusercontent.com/u/6287818?v=3","gravatar_id":"","url":"https://api.github.com/users/mardinator","html_url":"https://github.com/mardinator","followers_url":"https://api.github.com/users/mardinator/followers","following_url":"https://api.github.com/users/mardinator/following{/other_user}","gists_url":"https://api.github.com/users/mardinator/gists{/gist_id}","starred_url":"https://api.github.com/users/mardinator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mardinator/subscriptions","organizations_url":"https://api.github.com/users/mardinator/orgs","repos_url":"https://api.github.com/users/mardinator/repos","events_url":"https://api.github.com/users/mardinator/events{/privacy}","received_events_url":"https://api.github.com/users/mardinator/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2013-12-30T18:23:46Z","updated_at":"2015-06-28T19:46:27Z","closed_at":"2015-06-28T19:46:27Z","body":"When a form is validated and errornous field are shown,\r\nthe resetForm method didn't clear the marked fields style (class=\"error\") when the form isn't shown at the moment of the method call.\r\nWhen form is shown again then the field marks (e.g. red border) are still shown.\r\n\r\n\r\nA script for reproduction and a proposal to fix the problem can be found under\r\nhttps://gist.github.com/mardinator/8184638"}}