I have two lists on my code, one of "id_product" other one of "name_product"
for (i in lista_prod) {
const opt = document.createElement('option');
for (j in lista_prodname) {
opt.innerHTML = lista_prodname[j]
}
opt.value = lista_prod[i];
selectprod.appendChild(opt)
}
I want to create something iterable that the first index of a list get together with the firt element of the other list and continue until the end