[jQuery] Re: Using a button that doesn't submit?

2008-03-24 Thread Rick Faircloth
.insertAfter('#image-div :last'); > > }); > > }); > > > > And here's the button HTML: > > > > Add New Image Field > > > > Got any ideas on how I could modify this? > > > > I was using

[jQuery] Re: Using a button that doesn't submit?

2008-03-24 Thread motob
link > was refreshing the page and taking me back to the top of the page. > > Rick > > > -----Original Message----- > > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy > > Matthews > > Sent: Monday, March 24, 2008 1:19 PM > >

[jQuery] Re: Using a button that doesn't submit?

2008-03-24 Thread Rick Faircloth
I was using a link to add the file fields, but the link was refreshing the page and taking me back to the top of the page. Rick > -Original Message- > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy > Matthews > Sent: Monday, March 24, 2008 1:19 PM

[jQuery] Re: Using a button that doesn't submit?

2008-03-24 Thread Andy Matthews
If you're already using jQuery just return false on the submit method for the form. $('#myFormID').submit(function(){ // do stuff here return false; }); -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rick Faircloth Sent: Monday