I have this markup
<form action="..." id="form1" class="foo">...</form>
<form action="..." id="form2" class="foo">...</form>
...
and I have this Javascript code
$('.foo').ajaxForm({
    dataType: 'json',
    success: function (data) {
       // TODO: How do I get the form that triggered this?
       console.log( $(this) );
    }
});
As you can see in the Javascript code, I want to get the current form element when
it submits and was succesful. Outputting $(this) didn't show me anything that points
to the current form element.
How do I get the current form element inside the success function?
 
     
     
     
     
    