[Solved] Alert array index and value [closed]


Like this?

for(k=0;k<colNames.length;k++){
    alert("Index: " + k + " value: " + colNames[k]);
}

3

solved Alert array index and value [closed]