Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript [Solved] Trouble Using Variable in GetElementById Reply To: [Solved] Trouble Using Variable in GetElementById

#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.