I wanted to know if you can loop inside the other using the each
function without duplicating the values
Example
var cor = ["branco", "preto"];
var exa = ["#FFF" ,"#000"];
$.each(cor, function(index, values){
$.each(exa, function(index1, values1){
console.log(values + values1);
});
});
Every time I run this example the result goes like this:
branco#FFF
branco#000
preto#FFF
preto#000