Identifying form submitted via jQuery

Identifying form submitted via jQuery

Hi,

I have several forms in a single document, each of them is submitted using the functionality provided by the jQuery Form plug-in (identical options). My question is simply, how do I dynamically determine which form was submitted? Say I have 3 forms, user clicks on submit button in form 1 (id='form1') - in that case I am looking for a way to get an expression for $('#form1'). This expression should be available to the ajaxForm "success" function.

I thought about using some onClick on the submit button and setting some (global) variable to solve this but this doesn't strike me as very elegant.

Also, is there an easy way to prevent the submit button key/value from being sent with the xmlhttprequest post?

Thank you in advance.

/David