Hi there!

When I do an ajaxSubmit using the form plugin I don't get a response by
using the succes option.

I make an ajaxSubmit in the submitHandler option from the validate plugin.

Part of my code:

submitHandler: function(form) {
        $(form).ajaxSubmit({
                type: "POST",
                clearForm: true,
                url: "sendmail.php",
                succes: function(data) {
                        alert(data);
                }
        });
        return false;
}

I've tried a lot but without succes. I already tried this:
- replacing $(form) with $("#idForm")
- before the ajaxSubmit function a $(form).submit(function() { with a return
false

When I use this code it works sometimes but then I'm not able to add options
to my ajaxSubmit function :

$(form).ajaxSubmit(function(data) {
      alert(data);
});

I hope someone can help me.

Thanks in advance!

Greetings,

Koen
-- 
View this message in context: 
http://www.nabble.com/ajaxSubmit-using-validate-and-form-plugin-%28succes-option%29-tp21485361s27240p21485361.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to