Is there any way to reorder or manipulate a set of inputs before posting to a script for processing?
I’m able to reorder the elements in the DOM no problem, but getting this to happen after the user presses the submit button and before the browser makes the POST is a bit tricky. I’m using the ajaxForm plugin in jQuery. There is a beforeSubmit callback, but this doesn’t seem to allow me to reorded the inputs.
Is there any way to reorder or manipulate a set of inputs before posting
Share
This works. With the jQuery Form Plugin, you can manipulate the form using a call back function with the beforeSerialize option.
In my unfortunate case, I’m working with a PHP script that assumes certain post variables will be in a particular order.