In plain HTML, when you have multiple submit buttons in form, the name/value of the button that triggered the submit is passed to the server as one of the form fields (according to
http://www.w3.org/TR/html401/interact/forms.html#h-17.13.2)However when using jquery form, the name of clicked submit button is not passed, so it is not possible to find out on the server side which button was clicked. Is it because of the way DOM's form.submit() work, ie no way to pass the name of the button that submitted the form??
To work this round I use hidden field whose value is set when one of the form submit buttons is clicked and before the form is submitted. Am I doing it right?
Also, when reading jquery form code, i've found out a lot of effort to achieve things that jquery's serializeArray() already does (e.g. jquery form implements its own functions like formToArray, fieldValue etc etc. - was there any reason for writing this complicated javascript code when it was already implemented in jquery 1.2?