Detect an element on a page

by @pixiebrix

Detect and/or count an element using a jQuery selector


How to Use

No instructions provided yet. Have questions?
Ask the PixieBrix Community!


Inputs

Name Required Type Description
selector string jQuery selector
isRootAware boolean Whether the brick should run in the context of the target element, or document

Outputs

Name Required Type Description
count number The number of matches
exists boolean True if the element was detected

@pixiebrix/dom/detect

Version

1.7.16

Created

Aug. 17, 2021

Updated

May 26, 2022