[jQuery] Know which form was submitted in a page with multiple forms

[jQuery] Know which form was submitted in a page with multiple forms


I have a page which displays a list of resources in the database. For
each of these resources I have a comment form. I am using jQuery form
plugin to submit the form through ajax.
After submitting I want to display the comment which was just
submitted w/o reloading the page. But how do I know which form was
submitted? I attach the resource ID as a GET variable to the action
url of the form. If I can get the action url then I think I'm saved.