{"action":"created","issue":{"url":"https://api.github.com/repos/jquery/jquery/issues/3368","repository_url":"https://api.github.com/repos/jquery/jquery","labels_url":"https://api.github.com/repos/jquery/jquery/issues/3368/labels{/name}","comments_url":"https://api.github.com/repos/jquery/jquery/issues/3368/comments","events_url":"https://api.github.com/repos/jquery/jquery/issues/3368/events","html_url":"https://github.com/jquery/jquery/issues/3368","id":183916976,"number":3368,"title":"Serialize() should output values of type=submit buttons during form submission","user":{"login":"nickshanks","id":206120,"avatar_url":"https://avatars.githubusercontent.com/u/206120?v=3","gravatar_id":"","url":"https://api.github.com/users/nickshanks","html_url":"https://github.com/nickshanks","followers_url":"https://api.github.com/users/nickshanks/followers","following_url":"https://api.github.com/users/nickshanks/following{/other_user}","gists_url":"https://api.github.com/users/nickshanks/gists{/gist_id}","starred_url":"https://api.github.com/users/nickshanks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickshanks/subscriptions","organizations_url":"https://api.github.com/users/nickshanks/orgs","repos_url":"https://api.github.com/users/nickshanks/repos","events_url":"https://api.github.com/users/nickshanks/events{/privacy}","received_events_url":"https://api.github.com/users/nickshanks/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-19T09:56:58Z","updated_at":"2016-10-19T15:32:22Z","closed_at":"2016-10-19T15:32:22Z","body":"When a form is being submitted (i.e. within its `onsubmit` event) the submitting button, if any, should be included in the `serialize()` output.\r\n\r\nSee http://jsfiddle.net/om16j7m4/\r\n\r\n[The documentation](http://api.jquery.com/serialize/) states ‘No submit button value is serialized since the form was not submitted using a button.’ — This is currently correct when stating that no submit button value is serialized, but can be incorrect in its assumption that the form is not being submitted due a button being triggered."},"comment":{"url":"https://api.github.com/repos/jquery/jquery/issues/comments/254849643","html_url":"https://github.com/jquery/jquery/issues/3368#issuecomment-254849643","issue_url":"https://api.github.com/repos/jquery/jquery/issues/3368","id":254849643,"user":{"login":"dmethvin","id":157858,"avatar_url":"https://avatars.githubusercontent.com/u/157858?v=3","gravatar_id":"","url":"https://api.github.com/users/dmethvin","html_url":"https://github.com/dmethvin","followers_url":"https://api.github.com/users/dmethvin/followers","following_url":"https://api.github.com/users/dmethvin/following{/other_user}","gists_url":"https://api.github.com/users/dmethvin/gists{/gist_id}","starred_url":"https://api.github.com/users/dmethvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmethvin/subscriptions","organizations_url":"https://api.github.com/users/dmethvin/orgs","repos_url":"https://api.github.com/users/dmethvin/repos","events_url":"https://api.github.com/users/dmethvin/events{/privacy}","received_events_url":"https://api.github.com/users/dmethvin/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T15:32:22Z","updated_at":"2016-10-19T15:32:22Z","body":"If your code is running and knows that a specific button was used to trigger the code that calls `.serialize()`, it can add the button to the serialized string. The `.serialize()` method, however, doesn't have a reasonable way to know that the form it is serializing is being serialized because a specific button was pressed. "}}
{"actor":{"display_login":"dmethvin"}}