[jQuery] Re: Form is always submitting

2009-09-04 Thread Mike Alsup
>         jQuery('#recFrm').submit(function(){ > >                 return false; If you put a breakpoint on that line you will see it is never invoked. Your form has an id of recfrm, not recFrm.

[jQuery] Re: Form is always submitting

2009-09-04 Thread Cold Flame
Hi, You can call the submit function of the form on any event. jQuery('#smts').click(function(){ alert('Click'); //Form Submit function call. }); On Sep 4, 1:15 pm, Bluesapphire wrote: > Thanks for reply.  But as you can see in the code, I want to s

[jQuery] Re: Form is always submitting

2009-09-04 Thread Bluesapphire
Thanks for reply. But as you can see in the code, I want to submit form but on some conditions (which are in IF clause). Right now it is going/executing 'SUBMIT' function when I click on the button. Thanks On Sep 4, 11:45 am, Cold Flame wrote: > Hi, > > If you set value of type attribute t

[jQuery] Re: Form is always submitting

2009-09-03 Thread Cold Flame
Hi, If you set value of type attribute to button instead of submit the form will not submit. Like if you want to make an ajax call on send message button. i.e Regards Umair Shahid On Sep 4, 11:03 am, Bluesapphire wrote: > Hi! >     Kindly visit following link: > > http://www.articlecon.com/si