I am using ajaxForm function to submit my form that has nicEdit html editor as well but when I tried to submit the form for the first time the content of the nicEdit is not included... Is there a way that I can intercept the data submitted so I can edit the form data? or maybe add values to the form-data before it actually gets submitted? something like...
var options = { type: 'blahblah', success: blahblah, beforeSerialize: alterData } $('bla').ajaxForm(options)
function alterData(formdata){ // like adding a data here formdata['newdata'] = im a new data! // then return the new form data for submit return formdata; }
is there something similar to this? Appreciate all the help...