so if im not concerned about ie6 as my website is aimed at mac users , can i use:
document.querySelectorAll('div.test>img')
with success..?
only explorer 6 and below will fail is that correct..?
put it in a plain English way:
search the entire document and return every instance of the div with the class "test"
now look at those divs again and check to see if ant contain images.
return all images that reside anywhere within any of the test divs.
is there a way to do this by:
var...
hi there i am pretty new to javascript, and i am trying my hardest to make this work.
what i have so far:
if (!document.myGetElementsByClassName) {
document.myGetElementsByClassName = function(className) {
var children = document.getElementsByTagName('*') || document.all;
var elements =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.