how to traverse the dom using a for loop code example
Example: how to loop over dom objects javascript
Array.from($('.'+$( this ).attr('id'))).forEach(function(obj){
console.log(obj);
});
Array.from($('.'+$( this ).attr('id'))).forEach(function(obj){
console.log(obj);
});