Home › Forums › JavaScript › [Solved] Trouble Using Variable in GetElementById › Reply To: [Solved] Trouble Using Variable in GetElementById
September 29, 2016 at 4:40 pm
#246022
Alex Zaworski
Participant
Hi,
I’m seeing this in the console when clicking one of the pins on your map:
Uncaught ReferenceError: loc is not defined
Which may be the error that’s preventing everything from working.
At any rate, passing a variable into getElementById
is definitely valid, it’s kinda tough to guess what all’s going wrong. Do you have console logs before/after you can share?