I'm trying to get a specific set of images into an array but it's not working.
y = document.getElementsByTagName('img');
The above works but isn't specific enough.
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...
on some images in a loop based on specific conditions but only the ones inside the specific div.