instead of using preventDefault for the input, submit buttons use it for the form.submit event. That means write a event handler for onsubmit event of form and in that handler use preventDefault. It will work. We also had a same requirement. It solves the problem.
On Sat, Oct 18, 2008 at 9:14 AM, Hullah <[EMAIL PROTECTED]> wrote: > > Hmm...it looks like triggerHandler() is what I want. Because my goal > is to not submit the form, which was the reason I was calling > event.preventDefault() inside the click event. > > I just thought it was confusing because in the click even of the > button I was trying to prevent the default action of submitting the > form by calling preventDefault, yet the form was still submitting. > > Thanks for pointing out triggerHandler. > > On Oct 17, 8:24 pm, Choan Gálvez <[EMAIL PROTECTED]> wrote: > > While I don't fully understand what you want to do, I suspect that > > what you need is the `triggerHandler` method. See < > http://docs.jquery.com/Events/triggerHandler > > >. > > > > Or... submit the form instead of clicking the button. >