For some reason I need to transmit 2 separate scripts to a form at the same time. Any ideas how can I do this? Any help would be appreciated. Validate jQuery ("# form1") ({debug: true, submitHandler: function} {var dataString = jQuery ("# order_form form"). Serialize () ; JQuery.ajax ({Type: "POST", url: "checkout.php", data: datestring, // datatype: text, success: function (msg) {jQuery ('# order'). Animate ({left: '400px'}, 4000, 'linear'). Feidot (2500); jQuery ('# form1'). Animate ({left: '400px'}, 0, 'linear'). FadeOut (0); // JQuery ('# left'). CSS ('left', '400px'); jQuery ('# order_form'). Html ("& lt; div style = 'margin-top: 117px; text-align: center;' Id = 'message' & gt; & lt; / div & gt; "); jQuery ('# message') .HTML (" & lt; p class = 'text' & gt; Thanks & lt; / p & gt; ; ") .append (" & lt; p class = 'text' style = 'margin-bottom: 15px; 'gt; & lt; / p & gt;). Fadein (500, function) {jQuery (' # message '). Attachment ("& lt; img id =' checkmark 'src =' Rm / ok.png '& gt; ");});},}); details are false;}});
Yes, by adding another agax code to another page, like
submitHandler: function () {$ .ajax (); // First $ .ajax (); // second}
No comments:
Post a Comment