how can i use Javascript, not jQuery, to get all images inside of a certain element. I need to be getting them by tag as well.
Also im looking for that images that get effected by
#container img
not
#container > img
Thanks, Luke :).
try this:
var cont = document.getElementById("container");
var all_img = cont.getElementsByTagName('img');
You can use document.getElementById("#container").children;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With