{"action":"closed","issue":{"url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/819","labels_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/819/labels{/name}","comments_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/819/comments","events_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/819/events","html_url":"https://github.com/jzaefferer/jquery-validation/issues/819","id":17010157,"number":819,"title":"Partial valid form gets submitted even with required fields","user":{"login":"ambs","id":118547,"avatar_url":"https://avatars.githubusercontent.com/u/118547?v=3","gravatar_id":"","url":"https://api.github.com/users/ambs","html_url":"https://github.com/ambs","followers_url":"https://api.github.com/users/ambs/followers","following_url":"https://api.github.com/users/ambs/following{/other_user}","gists_url":"https://api.github.com/users/ambs/gists{/gist_id}","starred_url":"https://api.github.com/users/ambs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambs/subscriptions","organizations_url":"https://api.github.com/users/ambs/orgs","repos_url":"https://api.github.com/users/ambs/repos","events_url":"https://api.github.com/users/ambs/events{/privacy}","received_events_url":"https://api.github.com/users/ambs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2013-07-20T19:10:30Z","updated_at":"2015-06-28T19:41:12Z","closed_at":"2015-06-28T19:41:12Z","body":"The form:\r\n\r\n```html\r\n      <form id=\"signup-form\"\r\n            class=\"form-signin-inner\" method=\"POST\" action=\"<% request.uri_base %>/register\">\r\n        <h3 class=\"form-signin-heading\">Sign Up</h3>\r\n        <input name=\"user\" type=\"email\" required=\"1\" \r\n               class=\"input-block-level\" placeholder=\"Email address\"/>\r\n        <label class=\"checkbox\">\r\n          <input type=\"checkbox\" name=\"itos\"> I accept the <a href=\"#tos\"\r\n                               data-toggle=\"modal\">Terms of Service</a>.\r\n        </label>\r\n        <div style=\"text-align: right\">\r\n          <button class=\"btn btn-primary\" type=\"submit\">Sign Up</button>\r\n        </div>\r\n      </form>\r\n```\r\nand the script:\r\n\r\n```js\r\n      $(\"#signup-form\").validate({\r\n      errorPlacement: function(error, element) {\r\n      if (element.parent().is(\"label\")) {\r\n             error.insertAfter(element.parent());\r\n          } else {\r\n             error.insertAfter(element);\r\n          }\r\n      },\r\n      rules: {\r\n          user: {\r\n              required: true,\r\n              email: true },\r\n          itos: {\r\n             required: true,\r\n             minvalue: 1,\r\n         },\r\n      },\r\n      messages: {\r\n         itos: \"&nbsp;&#x21AA; You must agree with our terms of service.\",\r\n         user: {\r\n            required: \"&nbsp;&#x21AA; You must supply an e-mail address.\",\r\n            email: \"&nbsp;&#x21AA; The entered e-mail address is not valid.\",\r\n         }\r\n      },\r\n      });\r\n```\r\n\r\nI try to submit it all empty, I get messages both are required.\r\nI check the checkbox, and try to submit, and it gets accepted.\r\n\r\nI am running 1.11.1.\r\nAlso, take a look into my placement function. Probably you want to make it the default, so it works properly with checkboxes and labels.\r\n\r\nThanks"}}