[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 theumairsha...@gmail.com wrote: Hi, If you set

[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 ahmadsaa...@gmail.com wrote: Thanks for reply.  But as you can see in

[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-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 input type=button class=button value=Send Message To Shipper name=smts id=smts/ Regards Umair Shahid On Sep 4, 11:03 am, Bluesapphire