How to submit a form in two places with a submit place button?
$ ('form input [type = submit]'). ('Click', function () {var form = $ (this) .parents ('form'); $ .ajax ({url: "url1", data: form.serialize (), processData: false, type: form .attr ('method')}); $ .ajax ({url: "url2", data: form.serialize (), process data: wrong, type: form.attr ('method')})}). ('Submit', function () {return false}); This code stores for each URL.
Comments
Post a Comment