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

SOLVED

Event-Based Rule: Element Exists

LAE
Level 2
Level 2

Does anyone have any advice on the event-based rule using "element exists"?  I cannot get my rule to fire. If I change the event type to mouseover, it fires no problem -- so the selector is obviously correct.

1 Accepted Solution
shekhardhiman
Correct answer by
Employee
Employee

Hi There,

Thanks for reaching out to Adobe Community.

Locate the element on your site where the desired event action occurs, right click and select Inspect element. Inspect the highlighted script in the box that opens and ensure you are targeting the correct element. Example:

Target element: <div class=’pauseButton’ style=’opacity: 1’>

Selector Syntax:

  • CSS Selector Syntax: div.pauseButton OR div[class=’pauseButton’]
  • Manually assign attributes:Element Tag: div
  • Property: class
  • Value: pauseButton

Hope this helps!

View solution in original post

1 Reply
shekhardhiman
Correct answer by
Employee
Employee

Hi There,

Thanks for reaching out to Adobe Community.

Locate the element on your site where the desired event action occurs, right click and select Inspect element. Inspect the highlighted script in the box that opens and ensure you are targeting the correct element. Example:

Target element: <div class=’pauseButton’ style=’opacity: 1’>

Selector Syntax:

  • CSS Selector Syntax: div.pauseButton OR div[class=’pauseButton’]
  • Manually assign attributes:Element Tag: div
  • Property: class
  • Value: pauseButton

Hope this helps!

View solution in original post