Hallo ChrisB,
ist es also so möglich:
getIMG = document.getElementById("bag").getElementsByTagName("img");
function remove() {
for (var i = 1; i <= getIMG; i++)
if(getIMG[i]) {
if(getIMG[i].src = 'images/bereich1/bild1.png') {
var bild1 = getIMG[i].parentNode;
bild1.style = 'display: none;';
}
}
}
Eine Frage die mir jetzt noch offen bleibt, ist ob getIMG als Zahl definiert ist oder sind alle img tags darin gespeichert?
Gruß
Knight