Expand my Community achievements bar.

Help to get the correct CSS selector for bookmark text

Avatar

Level 2

Hi, 

I have a css selector that fires opposite of what is in the span when I toggle a switch. I have tried multiple ways to trigger however was unable to do so. 

This is part of the html script: 

1)for bookmarked:

<div class="cmp_switch">

   <span>Bookmark</span>

2) for removed bookmark:

 <div class="cmp_switch">

   <span>Remove Bookmark</span>

 

When i created the rule the css selector used was : 

Core click : css selector : cmp_switch span

 

The text triggers for the evar seems to be opposite from the actually toggle.

Can anyone advise?

 

Thanks.

 

 

1 Reply

Avatar

Community Advisor

I think we really need to see the site, the HTML and the behaviours to actually provide any real advice.

 

I have done things like this, so I'm pretty good, but trying to build blind from a vague description is something I wouldn't attempt...

 

If you are willing to share a link with us (even if you want to do it through a private message), I would be happy to try and help.