[jQuery] IE 6 double submit

[jQuery] IE 6 double submit


I'm using jQuery with form and validate plugins. I have several forms on the
same page. The following code submit the proper form:
$(document).ready(function() {
var loader = jQuery('<div id="loader">loader</div>');
$.validator.setDefaults({
debug: true,
focusInvalidElement: true,
submitHandler: function(form) {
$(form).ajaxStart(function() {
$(this).prepend(loader);
});
$(form).ajaxForm();
var options = { target: $(form).parent(), clearForm: true, resetForm:
true }
$(form).ajaxSubmit(options);
}
});
$("form").each(function(i){
$(this).validate();
});
});
The problem is that IE submits the form TWICE! All other browsers I've
tested, submit the form only once...
Any idea?
--
View this message in context: http://www.nabble.com/IE-6-double-submit-tp16964708s27240p16964708.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.