Question: uncaught typeerror document.getelementsbyclassname(...).innerhtml is not a function?
Answer: 6 Answers. getElementsByClassName has no definition for innerHTML because getElementsByClassName returns a NodeList object not an element. A NodeList is essentially a collection of elements. If you need to return a single element then use getElementById and pass the id of the element.