jquery ajax sending same request through a loop? -


Is it possible to send a single post request through AJAX using a .post () in a loop?

Say I have an array, and in this I would like to send a request for a post such as update, remove from database.

Yes, it is possible, you can do CN something like that,

  yourArrayObj.forEach (function (singles) {$ ajax.post ('/ your_url', request data, success callback, error breakback);});  

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -