[jQuery] Re: Validate plugin problem

2008-04-28 Thread Tomas GF
I recognize this. This code works: $(document).ready(function() { var loader = jQuery(' _js/spinner.gif '); $.validator.setDefaults({ debug: true, focusInvalidElement: true, submitHandler: function(form) { $(form).ajaxStart(function() { $(this).prepend(loader);

[jQuery] Re: Validate plugin problem

2008-04-27 Thread Jörn Zaefferer
Tomas GF schrieb: I'm using jQuery Validate (v. 1.2.1) on a page with several forms. I iterate through the forms using each(). The validation is working but when I try to append a loader (using ajaxStart()), it's appended to the wrong div (always on the second form). The code: $(document).re