[jQuery] Form plugin and attaching extra stuff to query string

[jQuery] Form plugin and attaching extra stuff to query string


At the moment, I unobtrusively submit a certain form via AJAX if
possible and when I do that I need to tell the server to respond with
a AJAX suitable return message. I do that by appending async_save=1 to
the form. Here's how I actually do it:
$(form).append('<input type="hidden" name="async_save" value="1">');
$(form).ajaxSubmit({
success: function(response) {
alert(response);
},
});
Is there a "better" way to add this extra parameter without having add
an element to the DOM like this?
--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com