> If I call
> jQuery('form1').ajaxSubmit();
>
> The value sent to the server is foo=bar and not foo=bar&button=click.
>
> Is there an easy way to get this to work? It's needed by my backend
> server.


Use ajaxForm instead of ajaxSubmit and you will get that behavior.
Note that you call ajaxForm once to prepare the form and it will
submit it for you whenever the user decides to submit it.  ajaxSubmit,
on the other hand, submits the form immediately and is typically used
within a submit event handler.

Mike

Reply via email to