Ok, the intended result is that doing something like this:

$("form").submit(function(){
   return validate(this);
});

...

$("form").submit();

Will be completely possible. .submit() will, perform roughly the same
thing as $("form")[0].submit(). THIS WILL NOT, NECESSARILY, SUBMIT THE
FORM.

If you have an event handler (like above) and it returns false, then
the submission will stop. This is just like its always been. The "new"
functionality in .submit() is actually a bug fix. Triggering is
supposed to actually trigger the event - but has never in the past
(which has been a huge source of confusion).

I hope this helps to clarify this.

--John

On 1/8/07, Dave Methvin <[EMAIL PROTECTED]> wrote:
> You are right, I just checked it. I am going for more coffee.
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Mike Alsup
> Sent: Monday, January 08, 2007 9:04 AM
> To: jQuery Discussion.
> Subject: Re: [jQuery] jQuery 1.1a (form submit)
>
> > But in jQuery 1.1. it is not like that and submit() invokes the submit
> > method of the form as well (at least according to the changelog). I
> > was trying to describe the concerns I have with that.
>
> No, that's not true.  $(..).submit() does *not* submit the form.
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to