I have a form I am submitting using jQuery's ajaxSubmit function from the Forms plugin. I'm trying to add a form name/value pair to the form data just before submission occurs. My plan is to modify the form data in the beforeSubmit event handler.
Given a function that looks like:
function handleActionFormBeforeSubmit(formData, form, options) {
// Add a name/value pair here somehow to formData
}
How do I add a simple pair to formData? It is an array in the form of:
[ { name: 'username', value: 'jresig' }, { name: 'password', value: 'secret' } ]
Thanks, Brian