{"action":"created","issue":{"url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1671","labels_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1671/labels{/name}","comments_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1671/comments","events_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1671/events","html_url":"https://github.com/jzaefferer/jquery-validation/issues/1671","id":122711822,"number":1671,"title":"Validate fields on change that aren't focused","user":{"login":"krypsin","id":8135396,"avatar_url":"https://avatars.githubusercontent.com/u/8135396?v=3","gravatar_id":"","url":"https://api.github.com/users/krypsin","html_url":"https://github.com/krypsin","followers_url":"https://api.github.com/users/krypsin/followers","following_url":"https://api.github.com/users/krypsin/following{/other_user}","gists_url":"https://api.github.com/users/krypsin/gists{/gist_id}","starred_url":"https://api.github.com/users/krypsin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krypsin/subscriptions","organizations_url":"https://api.github.com/users/krypsin/orgs","repos_url":"https://api.github.com/users/krypsin/repos","events_url":"https://api.github.com/users/krypsin/events{/privacy}","received_events_url":"https://api.github.com/users/krypsin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-17T10:57:17Z","updated_at":"2015-12-22T08:55:42Z","closed_at":null,"body":"I've got this problem that I have been rattling my brain over for days now and I can't find a solution for this.\r\n\r\nBasically I have a registration form that uses postal code validation services that when you begin typing the post code, it provides you with a dropdown location chooser and when you click the location you want it will fill out remaining fields like Address & County.\r\n\r\nSo there's 3 fields where this problem come to hand:\r\n  - Postal Code\r\n  - Address Line 1\r\n  - County\r\n\r\nThey will all be filled out but only the first one will be validated as that is the one that is focused by the user, so when I tab out my form looks like this:\r\n\r\n![screenshot from 2015-12-17 10 55 40](https://cloud.githubusercontent.com/assets/8135396/11868010/c7627bfe-a4ac-11e5-906c-a73ca94d6dc9.png)\r\n\r\nI hope this is a clear enough explanation. The only way to validate the other two fields is by clicking in and out on them or tabbing through them.\r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/comments/166557651","html_url":"https://github.com/jzaefferer/jquery-validation/issues/1671#issuecomment-166557651","issue_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1671","id":166557651,"user":{"login":"krypsin","id":8135396,"avatar_url":"https://avatars.githubusercontent.com/u/8135396?v=3","gravatar_id":"","url":"https://api.github.com/users/krypsin","html_url":"https://github.com/krypsin","followers_url":"https://api.github.com/users/krypsin/followers","following_url":"https://api.github.com/users/krypsin/following{/other_user}","gists_url":"https://api.github.com/users/krypsin/gists{/gist_id}","starred_url":"https://api.github.com/users/krypsin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krypsin/subscriptions","organizations_url":"https://api.github.com/users/krypsin/orgs","repos_url":"https://api.github.com/users/krypsin/repos","events_url":"https://api.github.com/users/krypsin/events{/privacy}","received_events_url":"https://api.github.com/users/krypsin/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T08:55:42Z","updated_at":"2015-12-22T08:55:42Z","body":"`element()` was very useful, thank you.\r\n\r\nTurns out I had to contact the company that provides my postal validation service for a specific event listener as their script doesn't trigger on blur, change or anything (it's something else they use).\r\n\r\nThanks again, though.\r\n\r\nFor anyone that uses PCAPredict services, you can use this snippet:\r\n\r\n```\r\ncapturePlus.listen(\"load\", function (control) {\r\n    control.listen(\"populate\", function (address) {\r\n\t\t$('#form_id').validate().element('input[name=\"register_attribute_2\"]');\r\n\t\t$('#form_id').validate().element('select[name=\"register_attribute_3\"]');\r\n\t});\r\n});\r\n```\r\n"}}