Question

var buttons = document.getElementsByClassName("art");

for(a=0;a<buttons.lenght;a++){
  if(buttons[a].getAttribute('title') == 'jamjam'){
    buttons.splice.call(a,1);
  }
}
Was it helpful?

Solution

This should work in most modern browsers:

var matches = document.querySelectorAll(".art[title=jamjam]");
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top