I'm trying to get a specific set of images into an array but it's not working.
Code:
y = document.getElementsByTagName('img');
The above works but isn't specific enough.
Code:
y = document.getElementById('test').getElementsByTagName('img');
The above is what I want but doesn't work. How can I achieve this?
Basically I need to use...
Code:
$(y[z]).css("display", "none");
on some images in a loop based on specific conditions but only the ones inside the specific div.