Get JS var From Markup | Community
Skip to main content
LeoS_Taco
Level 2
Mar 27, 2018 11:22 PM UTC
Solved

Get JS var From Markup

Hi, Let's say I'm trying to pass a var that's in the markup like so:

, into a data element? Thanks, Leo S.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
jantzen_b
jantzen_bAccepted solution
Employee
Apr 2, 2018 2:53 PM UTC

Hi Leo,

I'm not seeing how the var is in the markup. Can you try attaching a screenshot by using the picture widget inside the editor? You should be able to pull just about anything from the page into a data element given the correct JavaScript.

Thanks,
Jantzen

1 reply

jantzen_b
jantzen_bAccepted solution
Employee
Apr 2, 2018 2:53 PM UTC

Hi Leo,

I'm not seeing how the var is in the markup. Can you try attaching a screenshot by using the picture widget inside the editor? You should be able to pull just about anything from the page into a data element given the correct JavaScript.

Thanks,
Jantzen

Translate