var arr = ["uno", "dos", "tres"]; $.each(arr, function(i, val) { alert ("indice: "+i+" valor: "+val); });