W
W
Worddoc2016-07-15 21:22:07
atom
Worddoc, 2016-07-15 21:22:07

Why doesn't getElementByClassName work?

Hello. And now it's time to face a ridiculous problem. Can't get element by getElementByClassName. I just have no idea why... I tried all the selectors, nothing helps. Apparently it's not so easy to get an element from the DOM?
Gives this error:
document.getElementByClassName is not a function
https://jsfiddle.net/90tq6awh/5/
57d09b7a22d0436c9ba0156de6088e92.PNG

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Shtykov, 2018-03-29
@SHTIKOV

In vain you are so, this is space, not a function

Михаил, 2016-07-15
@Worddoc

getElementsByClassName

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question