Event-Based Rule: Element Exists | Community
Skip to main content
Level 2
October 22, 2015
Solved

Event-Based Rule: Element Exists

  • October 22, 2015
  • 1 reply
  • 1270 views

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.

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

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!

1 reply

WhoaShekhar
WhoaShekharAccepted solution
Level 10
October 23, 2015

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!