{"action":"created","issue":{"url":"https://api.github.com/repos/1000hz/bootstrap-validator/issues/446","repository_url":"https://api.github.com/repos/1000hz/bootstrap-validator","labels_url":"https://api.github.com/repos/1000hz/bootstrap-validator/issues/446/labels{/name}","comments_url":"https://api.github.com/repos/1000hz/bootstrap-validator/issues/446/comments","events_url":"https://api.github.com/repos/1000hz/bootstrap-validator/issues/446/events","html_url":"https://github.com/1000hz/bootstrap-validator/issues/446","id":190937895,"number":446,"title":"Manually invalidate input","user":{"login":"stockstatus","id":22363603,"avatar_url":"https://avatars.githubusercontent.com/u/22363603?v=3","gravatar_id":"","url":"https://api.github.com/users/stockstatus","html_url":"https://github.com/stockstatus","followers_url":"https://api.github.com/users/stockstatus/followers","following_url":"https://api.github.com/users/stockstatus/following{/other_user}","gists_url":"https://api.github.com/users/stockstatus/gists{/gist_id}","starred_url":"https://api.github.com/users/stockstatus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stockstatus/subscriptions","organizations_url":"https://api.github.com/users/stockstatus/orgs","repos_url":"https://api.github.com/users/stockstatus/repos","events_url":"https://api.github.com/users/stockstatus/events{/privacy}","received_events_url":"https://api.github.com/users/stockstatus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-22T08:42:35Z","updated_at":"2016-11-25T09:37:13Z","closed_at":"2016-11-22T16:02:02Z","body":"Hello,\r\n\r\ncould someone give me hint how to use bootstrap validator plugin to manually invalidate input field.\r\nI have my input field like this:\r\n`<div class=\"form-group\">`\r\n `<input id=\"myinput'\" class=\"customClass form-control \" data-error=\"'+ validateNumber + '\" pattern=\"-?` `[0-9]+([,.][0-9]+)?\" required=\"required\"/>`\r\n`<div class=\"help-block with-errors\"></div>`\r\n`</div>`\r\n\r\neverything works when i type bad value in input field - in this case string.\r\nBut is possible to manually invalidate this field if input contains some specific number value.\r\nFor example in my .js file:\r\n`function invalidateField(somevalue){`\r\n`if (!isCorrect){`\r\n`//something like $(\"#myinput\").invalidate`\r\n`}`\r\n`}`\r\n\r\nI will appreciate any help. Thank You."},"comment":{"url":"https://api.github.com/repos/1000hz/bootstrap-validator/issues/comments/262916499","html_url":"https://github.com/1000hz/bootstrap-validator/issues/446#issuecomment-262916499","issue_url":"https://api.github.com/repos/1000hz/bootstrap-validator/issues/446","id":262916499,"user":{"login":"stockstatus","id":22363603,"avatar_url":"https://avatars.githubusercontent.com/u/22363603?v=3","gravatar_id":"","url":"https://api.github.com/users/stockstatus","html_url":"https://github.com/stockstatus","followers_url":"https://api.github.com/users/stockstatus/followers","following_url":"https://api.github.com/users/stockstatus/following{/other_user}","gists_url":"https://api.github.com/users/stockstatus/gists{/gist_id}","starred_url":"https://api.github.com/users/stockstatus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stockstatus/subscriptions","organizations_url":"https://api.github.com/users/stockstatus/orgs","repos_url":"https://api.github.com/users/stockstatus/repos","events_url":"https://api.github.com/users/stockstatus/events{/privacy}","received_events_url":"https://api.github.com/users/stockstatus/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T09:37:13Z","updated_at":"2016-11-25T09:37:13Z","body":"Everything works like a charm now. Last version of validator plugin and call validator('update') after i dynamically add table row helps. Thanks."}}
{"actor":{"display_login":"stockstatus"}}