Ticket #3523 (closed enhancement: wontfix)
serialize() and serializeArray() to include submit button when only one in form
|Reported by:||kswedberg||Owned by:||john|
Per John Resig's request ( http://groups.google.com/group/jquery-dev/browse_thread/thread/f82bccd7bebdc838), I'm submitting this ticket to include the submit button in the serialize() string / serializeArray() object when there is only one submit button in the form, even though, as he mentioned, "we may not get to it."
I'm sure it can be improved quite a bit, but here is one way to achieve this:
change line 74 of ajax.js from this:
$(this).filter(":submit").length == 1 && /submit/i.test(this.type);
- Keywords serialize,submit,ajaxrewrite added; serialize, submit removed