setTimeout(()=>{
var sortBtn = Array.from(document.querySelectorAll('.clsname'));
for(const item of sortBtn){
item.addEventListener('click',(e)=>{
dataCollector('somestring',e.target);
})
}
},1000);
Data collector is a function that is performing some processing based on click
Aucun commentaire:
Enregistrer un commentaire