Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

DTM: Rule condition works by CSS selector, but doesn't grab values needed through multiple parentElements

Avatar

Avatar
Engage 1
Level 1
MMMMC
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Engage 1
View profile

Avatar
Engage 1
Level 1
MMMMC
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Engage 1
View profile
MMMMC
Level 1

07-02-2020

I have a CSS selector applied directly to an element (span.sw-icon.lfo-bookmark) that's firing an event. I need to get some values that are 4 parentElements up. When I console.log more than 2 parentElements, I get a 'null' message [in the screenshot, console.log works successfully up until the div with .bookmark-btn]. The site is done in Angular which I think might be the issue. I tried setting an evar, but didn't get anywhere with it. 

 

Any idea where i'm going wrong?

MMMMC_0-1581111883761.png

 

Accepted Solutions (0)

Answers (0)