I wanted to use the same element in different layouts. First I’ve been using “getElementById” and everything worked fine but in the other layouts. After that I realized the same id can´t be used twice so I tried changing “getElementByI” in my javascript for “getElementsByClassName” but it is not working. What am I doing wrong?
What I’m doing is an audio player with: a button that changes when it plays, a draggable area to go forward or backward in the progress of the audio and a time counter. I use the functions in elementbyid, but when I change the layout it is not working. I’m not sure about how to do it with classname.