{"action":"created","issue":{"url":"https://api.github.com/repos/formvalidation/formvalidation/issues/1201","labels_url":"https://api.github.com/repos/formvalidation/formvalidation/issues/1201/labels{/name}","comments_url":"https://api.github.com/repos/formvalidation/formvalidation/issues/1201/comments","events_url":"https://api.github.com/repos/formvalidation/formvalidation/issues/1201/events","html_url":"https://github.com/formvalidation/formvalidation/issues/1201","id":50203719,"number":1201,"title":"validate with selectator plugin","user":{"login":"lovegameisme","id":5997439,"avatar_url":"https://avatars.githubusercontent.com/u/5997439?v=3","gravatar_id":"","url":"https://api.github.com/users/lovegameisme","html_url":"https://github.com/lovegameisme","followers_url":"https://api.github.com/users/lovegameisme/followers","following_url":"https://api.github.com/users/lovegameisme/following{/other_user}","gists_url":"https://api.github.com/users/lovegameisme/gists{/gist_id}","starred_url":"https://api.github.com/users/lovegameisme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovegameisme/subscriptions","organizations_url":"https://api.github.com/users/lovegameisme/orgs","repos_url":"https://api.github.com/users/lovegameisme/repos","events_url":"https://api.github.com/users/lovegameisme/events{/privacy}","received_events_url":"https://api.github.com/users/lovegameisme/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/formvalidation/formvalidation/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2014-11-26T17:06:50Z","updated_at":"2015-01-23T09:53:56Z","closed_at":null,"body":"pls help my code\r\n```\r\n <div class=\"form-group\">\r\n                                    <div class=\"input-group\">\r\n                                        <span class=\"input-group-addon\"><i class=\"icon-settings\"></i></span>\r\n                                        <select id=\"size_id\" multiple style=\"width:100%\" class=\"form-control\" data-toggle=\"tooltip\" title=\"Kich thuoc san pham\" name=\"size_id[]\">\r\n<option value=\"0\">Test</option>\r\n<option value=\"1\">Test1</option>\r\n                                            </select>\r\n                                    </div>\r\n                                </div>\r\n</code></pre>\r\n\r\n<JSCODE>\r\n$(document).ready(function(){\r\n...bootstrapValidator({\r\n.......\r\n'size_id[]':{\r\n                feedbackIcons: 'true',\r\n                validators:{\r\n                    notEmpty:{\r\n                        message:'Không để trống'\r\n                    }\r\n                }\r\n            },\r\n.......\r\n});\r\n});\r\n</JSCODE>\r\n```\r\n\r\nand now, that not working with my code.\r\n\r\nthanks your help!(Anh có thể cho e xin contact của anh để e có thể nhờ sự giúp đỡ từ anh đc k?)"},"comment":{"url":"https://api.github.com/repos/formvalidation/formvalidation/issues/comments/71170596","html_url":"https://github.com/formvalidation/formvalidation/issues/1201#issuecomment-71170596","issue_url":"https://api.github.com/repos/formvalidation/formvalidation/issues/1201","id":71170596,"user":{"login":"nghuuphuoc","id":4226036,"avatar_url":"https://avatars.githubusercontent.com/u/4226036?v=3","gravatar_id":"","url":"https://api.github.com/users/nghuuphuoc","html_url":"https://github.com/nghuuphuoc","followers_url":"https://api.github.com/users/nghuuphuoc/followers","following_url":"https://api.github.com/users/nghuuphuoc/following{/other_user}","gists_url":"https://api.github.com/users/nghuuphuoc/gists{/gist_id}","starred_url":"https://api.github.com/users/nghuuphuoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nghuuphuoc/subscriptions","organizations_url":"https://api.github.com/users/nghuuphuoc/orgs","repos_url":"https://api.github.com/users/nghuuphuoc/repos","events_url":"https://api.github.com/users/nghuuphuoc/events{/privacy}","received_events_url":"https://api.github.com/users/nghuuphuoc/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T09:53:56Z","updated_at":"2015-01-23T09:53:56Z","body":"Sorry for getting back late.\r\nThe problem is that you pass the ```data``` option for [remote validator](http://formvalidation.io/validators/remote/#sending-dynamic-data-example) in a wrong way.\r\nThe correct usage is\r\n\r\n```javascript\r\nproduct_url: {\r\n    validators: {\r\n        notEmpty: {\r\n            ...\r\n        },\r\n        remote: {\r\n            url: \"../php.control/check.php\",\r\n            message: '...',\r\n            type: \"POST\",\r\n            data: function(validator) {\r\n                return {\r\n                    checkTrailerTitle: $(\"#trailerTitle\").val();\r\n                };\r\n            }\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n\r\n"}}