Get JS var From Markup

Avatar

Avatar

LeoS_Taco

Avatar

LeoS_Taco

LeoS_Taco

27-03-2018

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

jantzen_belliston-Adobe

Community Manager

Total Posts

1.9K

Likes

312

Correct Answer

570

Avatar

jantzen_belliston-Adobe

Community Manager

Total Posts

1.9K

Likes

312

Correct Answer

570
jantzen_belliston-Adobe
Community Manager

02-04-2018

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

Answers (0)