> $('#myform').submit(function() {
> $(this).ajaxSubmit({
> url: '/some/generated/value',
> });
> return false;
>
> });
>
> Which works fine, except the value of the submit button is not sent to the
> server. As I test for this value server side, it is a problem for me. Any easy
> way to include/set the submit button?
Yes, use ajaxForm instead of ajaxSubmit. Note that with ajaxForm you
do *not* bind the submit event.
$('#myform').ajaxForm({
url: '/some/generated/value'
});

