Can I send my data to multiple pages using ajax call? I dont want to use another ajax call for this.
Sample code:
$.ajax({
type: \'POST\',
A single AJAX request can only talk to one URL, but you can create multiple AJAX requests for different URLs, and they will do their work simultaneously - you wouldn't need to wait for one to complete before firing off the next one.
(If your URLs are on the same server, you could consider refactoring your server-side code so that a single URL does all the work that your multiple URLs do now.)