Read the following code:
for (i = 0; i < 20; i++) {
  $.post( 'url', 'data='+ i, function (data) 
   {
      alert( 'Element ' + i + ' was added' );
   };
}
If you do this 20 POST will be performed at the same time!
What I need is to do this one by one (sequential)... How can I do that?
 
    