Expand my Community achievements bar.

SOLVED

Event-Based Rule: Element Exists

Avatar

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

Avatar

Correct answer by
Level 10

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

Avatar

Correct answer by
Level 10

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!