> You should be able to use a closure to get what you want--untested:

Thanks, Dave.   It's true, the 'after' callback is invoked directly
from $.ajax so it doesn't have the context of the form.  A closure
should work fine though - a simple example (tested):

$('form').each(function() {
    var theForm = this;

    var options = {
        after:  function() {  alert(theForm.id)  }
    };

    $(this).ajaxForm(options);
});

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to