Skip to content Skip to sidebar Skip to footer

Getelementsbyclassname.style Is Undefined

I want to change default error message for inputs in browser. I turn on all default messages, create hidden div with text and I want to show this div for every invalid input. Text

Solution 1:

this is because getElementsByClassName returns live HTMLCollection of found elements, you can not apply style on a collection. You will have to select a particular element by index.


Post a Comment for "Getelementsbyclassname.style Is Undefined"