What's the standard or most popular way of changing or adding a form values being serialized and sent to the server on form submit? I need to just change / add them before they are have been sent.
I found some solutions, but they all seemed to be just hacks. For instance, this one creates these values again which is not wise. In my case, I don't want to recreate them if possible.
var serial = new Array();
var i = 0;
$('.om input').each( function(){
serial[i++] = $(this).attr('name')[0]+'='+$(this).html()[0];
});
serial.join('&');