{"action":"opened","issue":{"url":"https://api.github.com/repos/victorjonsson/jQuery-Form-Validator/issues/244","labels_url":"https://api.github.com/repos/victorjonsson/jQuery-Form-Validator/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/victorjonsson/jQuery-Form-Validator/issues/244/comments","events_url":"https://api.github.com/repos/victorjonsson/jQuery-Form-Validator/issues/244/events","html_url":"https://github.com/victorjonsson/jQuery-Form-Validator/issues/244","id":71375779,"number":244,"title":"enable submit button on validate","user":{"login":"BernardA","id":9449665,"avatar_url":"https://avatars.githubusercontent.com/u/9449665?v=3","gravatar_id":"","url":"https://api.github.com/users/BernardA","html_url":"https://github.com/BernardA","followers_url":"https://api.github.com/users/BernardA/followers","following_url":"https://api.github.com/users/BernardA/following{/other_user}","gists_url":"https://api.github.com/users/BernardA/gists{/gist_id}","starred_url":"https://api.github.com/users/BernardA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BernardA/subscriptions","organizations_url":"https://api.github.com/users/BernardA/orgs","repos_url":"https://api.github.com/users/BernardA/repos","events_url":"https://api.github.com/users/BernardA/events{/privacy}","received_events_url":"https://api.github.com/users/BernardA/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-27T19:18:33Z","updated_at":"2015-04-27T19:18:33Z","closed_at":null,"body":"Hello\r\n\r\nI do not want to enable submit unless form is validated. So I set  submit do disabled on document ready\r\nand I only want it to be enabled when form is validated.\r\n\r\nBut my code below is not working. \r\n\r\nWhat am I missing?\r\n\r\nThanks\r\nBernard\r\n\r\n\r\n```$(\".sub\").prop('disabled', true);```\r\n\r\n\r\n```\r\n<script>\r\n  $.validate({\r\n    modules : 'security, file',\t\t\t\r\n    form : '#signup_form , #login_form, #recovery_form',\r\n    onValidate : function() {\r\n$(\".sub\").prop('disabled', false);\r\n    }\r\n  });\r\n</script>\r\n\r\n```"}}