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\',
Using '$.when' could be an alternative as well. I have used it in one of my project.
Reading jQuery API instructions:
Execute the function myFunc when both ajax requests are successful, or myFailure if either one has an error.
$.when( $.ajax( "/page1.php" ), $.ajax( "/page2.php" ) ) .then( myFunc, myFailure );