I need to make a each with several items, for example:
How can I do this? The "item" already generates the result of the array "data.id_site" but I need a new array together, "item2" which generates the result of the array "data.name".
It would be something like:
$.each(data.id_site, data.name, function(i, item, item2) {
$(".lado").append("<div id='site-" + item + "'>" + item2 + "</div>");
});