change all elements with a certain class based on text input
I think this is going to be something very simple but I haven’t found an answer. How would I make all span elements with
class="namehere" display what was inserted in input text?
getElementsByClassName() returns an array-like object of elements.
You need to iterate over each element and access it by its index.