RE: [jQuery] Preventing form submit

2009-10-29 Thread Jeffrey Kretz
the click event of the button. JK From: Charlie Griefer [mailto:charlie.grie...@gmail.com] Sent: Thursday, October 29, 2009 9:28 AM To: jquery-en@googlegroups.com Subject: Re: [jQuery] Preventing form submit On Thu, Oct 29, 2009 at 9:21 AM, SamCKayak wrote: I've added a jQuer

Re: [jQuery] Preventing form submit

2009-10-29 Thread Charlie Griefer
On Thu, Oct 29, 2009 at 9:21 AM, SamCKayak wrote: > I've added a jQuery .onClick to a form submit. > > Is there a way to prevent the form from submitting? > return false in the click handler. $('#myFormSubmit').click(function() { do stuff; return false; }); Altho, I'm wondering if i

[jQuery] Preventing form submit

2009-10-29 Thread SamCKayak
I've added a jQuery .onClick to a form submit. Is there a way to prevent the form from submitting?