I am in a need to have a jQuery solution to issue ajax requests one after another.
User input are fetch in to an array.Then after iterating through the array, I have planned to pass each array element (a string) to a specific url through ajax post, then on success , it needs to update a particular html element.
But each ajax request should be made after, processing of previous ajax request, receving its content, and html element update.
How can implement it..
var arr = new Array("string1","string2","string3","string4");
ids of HTML elements : e1 , e2, e3, e4
Ajax URL : processAjax.php
data variable : str (each above array element to be pass as str with Ajax URL)
Can someone please explain me how to do it with above parameters.