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 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 <ahmadsaa...@gmail.com> wrote:
>
>
>
> > Hi!
> >     Kindly visit following link:
>
> >http://www.articlecon.com/sitesdemo/ship/viewquote.php?mid=1
>
> > When I click  'Send Message To Shipper' button, Form is submitted,
> > where as I placed following jQuery code to stop submission.
>
> > <script type="text/javascript">
>
> > jQuery(document).ready(function(){
>
> >         var Mts, clk, sShow;
>
> >         jQuery('#smts').click(function(){
> >                 alert('Click');
> >                 Mts = 1;
> >         });
>
> >         jQuery('#recFrm').submit(function(){
>
> >                 return false;
>
> >                 /*
> >                 alert('Out Of Mts Submit');
> >                 if(Mts){
> >                         alert('In Submit sMts');
> >                         jQuery('#act').val('SMTS');
> >                         jQuery(this).attr('action', 'submit/followup.php');
> >                         return true;
> >                 }
> >                 else{
> >                         return false;
> >                 }
> >                 */
> >         });
>
> > });
>
> > </script>
>
> > Can some one guide me what and where Iam doing wrong.
>
> > Thanks in advance- Hide quoted text -
>
> - Show quoted text -

Reply via email to