I am having trouble with a jquery script to send a serialized form data along with a modified variable.i have tried a couple different methods, but the added variable is not posting.
I have tried a few methods, the best I think using jquery.param(), however, it is not passing the variable message through.
// Code the input (message) var message = $('textarea[name="content"]').html($('#emailbody').code()); // Submit the form using AJAX. $.ajax({ type: 'POST', url: 'mailer.php', data: $(form).serialize()+$.param(message), }) I am guessing my syntax for passing the variable is incorrect. Any tips?
Thank you, Nigel
.code()in$('#emailbody').code().