javascript loop through dom elements by css attribute 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);
});