I need to access elements in html file using javascript, their names are like arr_1, arr_2, arr_3, i wish to use a loop to dynamically create the id then to access them like below:
for(var i=0; i< 10; i++) {
var id = "arr_" + i;
$document.getElementById('id')....
}
but it doesn't work. i remember there is an function to allow me do that, anyone know what that is?