Home › Forums › JavaScript › [Solved] Trouble Using Variable in GetElementById › Reply To: [Solved] Trouble Using Variable in GetElementById
September 30, 2016 at 1:13 pm
#246058
Alex Zaworski
Participant
Oh! Are you trying to get the content of the div? You want .innerText
not .value
— does that fix it?
.value
is for input elements.