Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript if else statement issue Re: if else statement issue

#69469
Chris Coyier
Keymaster

Well there is: https://developer.mozilla.org/en/DOM/document.getElementsByClassName

It’s just not supported in all browsers. So… there are little scripts that use to simulate it. http://snook.ca/archives/javascript/your_favourite_1