JSFiddle - React, Tailwind, and code Playground
JavaScript
var item_arr = ['a','b'];
$(function(){
item_arr.forEach(function(item_name){
$.post('/echo/html/', { 'item':item_name }, function(){
alert(item_name)
});
});
});
var item_arr = ['a','b'];
$(function(){
item_arr.forEach(function(item_name){
$.post('/echo/html/', { 'item':item_name }, function(){
alert(item_name)
});
});
});