var arr = new Array();
arr = document.getElementsByClassName("repestyl2");
var index = 0;
while(index !== arr.length){
if(arr[index].innerHTML.indexOf("Eck") >= 0){
arr[index].removeNode(true);
arr[index].parentNode.removeChild(arr[index]);
index++;
}
Is this code ok? Because I can't get it to work :)
Simple question :P
Thanks :)
Maybe I should use for-each o.O