Hey Jörn thanks for the reply, good to know! I went with James
solution which is perfect for what i'm working with. Thanks again
guys.
On Feb 9, 9:07 am, James wrote:
> Since you wanted do submit by Ajax;
>
> $("#form-external-link").validate({
> rules: {
> exlink_url: {
>
Since you wanted do submit by Ajax;
$("#form-external-link").validate({
rules: {
exlink_url: {
required: true,
url: true
}
},
submitHandler: function(form) {
$.ajax(...);
}
});
Try this:
$("#form-external-link").validate({
rules: {
exlink_url: {
required: true,
url: true
}
},
submitHandler: function(form) {
alert('This will pop up only once as it should');
Hi James! Thanks for the quick reply. I'm still confused as to where I
should place my $(form).submit(..). so i'm not re-attaching additional
submit events?
What i'm doing basically is: 1. have Validate pass the form 2. submit
the form via ajax
The only thing is that the form is always being reus
Hmm.. code didn't display properly.
I wanted to say, every time you're doing
$(form).submit(...)
you're re-attaching an additional submit...
On Feb 8, 9:13 am, James wrote:
> Every time you're doing:
>
> you're re-attaching an additional submit event to the form, so it's
> executing it multipl
Every time you're doing:
you're re-attaching an additional submit event to the form, so it's
executing it multiple times every time you submit.
What is it you're trying to do? When you define submitHandler for
validate, you should be doing whatever you're doing in $(form).submit
() inside the sub
6 matches
Mail list logo