{"action":"created","issue":{"url":"https://api.github.com/repos/rickharrison/validate.js/issues/74","labels_url":"https://api.github.com/repos/rickharrison/validate.js/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/rickharrison/validate.js/issues/74/comments","events_url":"https://api.github.com/repos/rickharrison/validate.js/issues/74/events","html_url":"https://github.com/rickharrison/validate.js/issues/74","id":15628868,"number":74,"title":"Grouped inputs ([]) for PHP Arrays not being validated.","user":{"login":"bingocaller","id":1763556,"avatar_url":"https://avatars.githubusercontent.com/u/1763556?v=3","gravatar_id":"","url":"https://api.github.com/users/bingocaller","html_url":"https://github.com/bingocaller","followers_url":"https://api.github.com/users/bingocaller/followers","following_url":"https://api.github.com/users/bingocaller/following{/other_user}","gists_url":"https://api.github.com/users/bingocaller/gists{/gist_id}","starred_url":"https://api.github.com/users/bingocaller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bingocaller/subscriptions","organizations_url":"https://api.github.com/users/bingocaller/orgs","repos_url":"https://api.github.com/users/bingocaller/repos","events_url":"https://api.github.com/users/bingocaller/events{/privacy}","received_events_url":"https://api.github.com/users/bingocaller/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2013-06-17T12:03:58Z","updated_at":"2015-02-06T11:17:37Z","closed_at":"2013-08-18T23:06:15Z","body":"I have a form with some grouped input fields, which have a set of square brackets at the end of their names like so:\r\n\r\n```html\r\n<input name=\"query_519535_2_0_0[]\" id=\"query_519535_2_0_0_1\" value=\"1\" type=\"radio\">\r\n<input name=\"query_519535_2_0_0[]\" id=\"query_519535_2_0_0_2\" value=\"2\" type=\"radio\">\r\n<input name=\"query_519535_2_0_0[]\" id=\"query_519535_2_0_0_3\" value=\"3\" type=\"radio\">\r\n```\r\n\r\nWhen I try to validate these groups of inputs like so:\r\n```javascript\r\nvar validationRules = [\r\n\t\t{name: 'query_519535_2_0_0[]', rules: 'required'}\r\n\t];\r\n```\r\nhoping to validate whether any of the radio buttons have been selected, but nothing happens on submit. I have other inputs with no brackets in their names that are being validated as expected.\r\n\r\nI tried removing the brackets from the JS but this resulted in the radio groups evaluating to false no matter what."},"comment":{"url":"https://api.github.com/repos/rickharrison/validate.js/issues/comments/73222196","html_url":"https://github.com/rickharrison/validate.js/issues/74#issuecomment-73222196","issue_url":"https://api.github.com/repos/rickharrison/validate.js/issues/74","id":73222196,"user":{"login":"hassankhan","id":1781985,"avatar_url":"https://avatars.githubusercontent.com/u/1781985?v=3","gravatar_id":"","url":"https://api.github.com/users/hassankhan","html_url":"https://github.com/hassankhan","followers_url":"https://api.github.com/users/hassankhan/followers","following_url":"https://api.github.com/users/hassankhan/following{/other_user}","gists_url":"https://api.github.com/users/hassankhan/gists{/gist_id}","starred_url":"https://api.github.com/users/hassankhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hassankhan/subscriptions","organizations_url":"https://api.github.com/users/hassankhan/orgs","repos_url":"https://api.github.com/users/hassankhan/repos","events_url":"https://api.github.com/users/hassankhan/events{/privacy}","received_events_url":"https://api.github.com/users/hassankhan/received_events","type":"User","site_admin":false},"created_at":"2015-02-06T11:17:37Z","updated_at":"2015-02-06T11:17:37Z","body":"I'm seeing this issue again: http://jsfiddle.net/jgx32bs6/"}}