Help to get the correct CSS selector for bookmark text | Community
Skip to main content
Level 2
October 30, 2023
Question

Help to get the correct CSS selector for bookmark text

  • October 30, 2023
  • 1 reply
  • 468 views

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.

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
October 30, 2023

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.