{"action":"created","issue":{"url":"https://api.github.com/repos/DavyJonesLocker/client_side_validations/issues/534","labels_url":"https://api.github.com/repos/DavyJonesLocker/client_side_validations/issues/534/labels{/name}","comments_url":"https://api.github.com/repos/DavyJonesLocker/client_side_validations/issues/534/comments","events_url":"https://api.github.com/repos/DavyJonesLocker/client_side_validations/issues/534/events","html_url":"https://github.com/DavyJonesLocker/client_side_validations/issues/534","id":13917385,"number":534,"title":"Manually triggering validations for inputs","user":{"login":"bmarini","id":13173,"avatar_url":"https://avatars.githubusercontent.com/u/13173?v=3","gravatar_id":"","url":"https://api.github.com/users/bmarini","html_url":"https://github.com/bmarini","followers_url":"https://api.github.com/users/bmarini/followers","following_url":"https://api.github.com/users/bmarini/following{/other_user}","gists_url":"https://api.github.com/users/bmarini/gists{/gist_id}","starred_url":"https://api.github.com/users/bmarini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmarini/subscriptions","organizations_url":"https://api.github.com/users/bmarini/orgs","repos_url":"https://api.github.com/users/bmarini/repos","events_url":"https://api.github.com/users/bmarini/events{/privacy}","received_events_url":"https://api.github.com/users/bmarini/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2013-05-03T00:30:20Z","updated_at":"2015-07-20T06:39:16Z","closed_at":"2013-05-03T00:48:24Z","body":"I'd like to trigger the unique validation for a form input on keyup so that the user has better feedback while they are choosing a unique name. Is this something that is easy to do? I'm digging through rails.validations.js and not seeing any obvious hooks into the validation functions."},"comment":{"url":"https://api.github.com/repos/DavyJonesLocker/client_side_validations/issues/comments/122775643","html_url":"https://github.com/DavyJonesLocker/client_side_validations/issues/534#issuecomment-122775643","issue_url":"https://api.github.com/repos/DavyJonesLocker/client_side_validations/issues/534","id":122775643,"user":{"login":"jmarceli","id":4281333,"avatar_url":"https://avatars.githubusercontent.com/u/4281333?v=3","gravatar_id":"","url":"https://api.github.com/users/jmarceli","html_url":"https://github.com/jmarceli","followers_url":"https://api.github.com/users/jmarceli/followers","following_url":"https://api.github.com/users/jmarceli/following{/other_user}","gists_url":"https://api.github.com/users/jmarceli/gists{/gist_id}","starred_url":"https://api.github.com/users/jmarceli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmarceli/subscriptions","organizations_url":"https://api.github.com/users/jmarceli/orgs","repos_url":"https://api.github.com/users/jmarceli/repos","events_url":"https://api.github.com/users/jmarceli/events{/privacy}","received_events_url":"https://api.github.com/users/jmarceli/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T06:39:16Z","updated_at":"2015-07-20T06:39:16Z","body":"My \"good\" solution is to execute following script to trigger selected input validation:\r\n\r\n    $input = $('#validated_input')\r\n    $form = $input.closest('form')\r\n    $input.data('changed', true).isValid($form[0].ClientSideValidations.settings.validators)\r\n\r\nI've added this solution as the wiki page https://github.com/DavyJonesLocker/client_side_validations/wiki/Manually-trigger-input-validation\r\n "}}