{"issue":{"state":"open","created_at":"2011-10-10T01:01:13Z","updated_at":"2011-11-22T10:15:51Z","comments":4,"user":{"gravatar_id":"738ed993467ba25a831da9950d80b6e7","id":1115080,"url":"https://api.github.com/users/aliquid","login":"aliquid","avatar_url":"https://secure.gravatar.com/avatar/738ed993467ba25a831da9950d80b6e7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Successfully revalidating a form using validator.form() does not clear the \"error\" class from a field that is disabled (only the error message is removed).\r\n\r\nWorkaround:\r\n  $(\"input.error\").removeClass(\"error\"); // watch out for the error message labels or they won't go away\r\n  $(\"#myform\").validate().form(),","assignee":null,"id":1860066,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":224,"labels":[],"title":"\"error\" class is not removed for disabled fields on validator.form()","closed_at":null,"html_url":"https://github.com/jzaefferer/jquery-validation/issues/224","url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/224","milestone":null},"action":"created","comment":{"created_at":"2011-11-22T10:15:51Z","updated_at":"2011-11-22T10:15:51Z","user":{"gravatar_id":"ff20524fa16cd91eaa54ae9ba85b66d1","id":1196358,"url":"https://api.github.com/users/Denk","login":"Denk","avatar_url":"https://secure.gravatar.com/avatar/ff20524fa16cd91eaa54ae9ba85b66d1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"I have the same issue as aliquid... The error class isn't removed from elements which are disabled.\r\n\r\nSomewhere in the code it says:\r\n.not(\":submit, :reset, :image, [disabled]\")\r\n\r\nJust remove \",  [disabled]\" from the .js file and it'll work.\r\n\r\nI wonder why disabled fields are ignored... Why shouldn't we be able to validate a disabled field?","id":2832606,"url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/comments/2832606"}}