$.each() // replace myData with array for(var input = myData, key = 0, val = input[key]; key < input.length; key++, val = input[key]) { console.log(key,val) } DOM Selector document.querySelectorAll(%strSelectors%);