I'm trying to access my form object inside of ajaxForm's error method:
$('#foo').ajaxForm({
error: function(){
// where's my $('#foo') object?
}
});
error can take 3 params, but none of them are the form object, also this returns the url, but again no form.
Any suggestions?
Does
this
not work? I.e.,Tricky, why not use:
If there is another way, I'd love to know myself.
If you read the tab 'Working with Fields' in that plugin's docs, I think you'll find your answer.
For performance, you should probably store a reference to the form before you bind the ajaxForm.