{"action":"created","issue":{"url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1715","repository_url":"https://api.github.com/repos/jzaefferer/jquery-validation","labels_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1715/labels{/name}","comments_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1715/comments","events_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1715/events","html_url":"https://github.com/jzaefferer/jquery-validation/issues/1715","id":135343697,"number":1715,"title":"onclick validation method not only for checkboxes and radio buttons ?","user":{"login":"ultraviolet","id":612438,"avatar_url":"https://avatars.githubusercontent.com/u/612438?v=3","gravatar_id":"","url":"https://api.github.com/users/ultraviolet","html_url":"https://github.com/ultraviolet","followers_url":"https://api.github.com/users/ultraviolet/followers","following_url":"https://api.github.com/users/ultraviolet/following{/other_user}","gists_url":"https://api.github.com/users/ultraviolet/gists{/gist_id}","starred_url":"https://api.github.com/users/ultraviolet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ultraviolet/subscriptions","organizations_url":"https://api.github.com/users/ultraviolet/orgs","repos_url":"https://api.github.com/users/ultraviolet/repos","events_url":"https://api.github.com/users/ultraviolet/events{/privacy}","received_events_url":"https://api.github.com/users/ultraviolet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-22T07:48:58Z","updated_at":"2016-02-24T23:17:53Z","closed_at":null,"body":"Issue with instant validation. \r\n\r\nWhen form field is active autosaved values are proposed (default for every form). If we choose autosaved value, by clicking on it, form field is not validated instantly, in other words error message is not removed despite value passes validation.\r\n\r\nFor example, we have a field \"name\" and rule of minimum 3 characters.\r\nWhen we typed one character in the field, and switched to another field, field did not pass instant validation and error is populated. \r\n\r\nIf we return to this field and type \"Bob\" error is removed instantly (seems like http://jqueryvalidation.org/validate#onkeyup method handles this).\r\n\r\nBut if we return to the field \"name\" and instead of typing erase everything and select \"Bob\" from proposed autosaved values, error is not removed, even if we switch to another form field (maybe http://jqueryvalidation.org/validate#onfocusout method should hadle this but it does not).    \r\n\r\nThis makes confusion in user experience, because user sees that validation is instant and errors are removed immediately after field passes validation. But in this case user selects correct value from autosaved items but error is not removed (field is not validated instantly).\r\n\r\nThere are workarounds, e.g. disable autosave for form or disable instant validation (set to false all methods except onsubmit). But how to resolve this with active instant validation?"},"comment":{"url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/comments/188510162","html_url":"https://github.com/jzaefferer/jquery-validation/issues/1715#issuecomment-188510162","issue_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1715","id":188510162,"user":{"login":"Arkni","id":6888059,"avatar_url":"https://avatars.githubusercontent.com/u/6888059?v=3","gravatar_id":"","url":"https://api.github.com/users/Arkni","html_url":"https://github.com/Arkni","followers_url":"https://api.github.com/users/Arkni/followers","following_url":"https://api.github.com/users/Arkni/following{/other_user}","gists_url":"https://api.github.com/users/Arkni/gists{/gist_id}","starred_url":"https://api.github.com/users/Arkni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arkni/subscriptions","organizations_url":"https://api.github.com/users/Arkni/orgs","repos_url":"https://api.github.com/users/Arkni/repos","events_url":"https://api.github.com/users/Arkni/events{/privacy}","received_events_url":"https://api.github.com/users/Arkni/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T23:17:53Z","updated_at":"2016-02-24T23:17:53Z","body":"Here is the master version after the build (I put it on https://gist.github.com):\r\nhttps://gist.githubusercontent.com/Arkni/40956198a7449d88fe0e/raw/4468022a0c984432b10284d946c26309424365eb/jquery.validate.js"}}