Optional
parentOptional parent Element, EventTarget, or CSS selector.
Optional
tagOptional element tag name to limit search.
Optional
withKey/value pairs of attributes to search for.
Optional
withKey/value pairs of dataset entries to search for.
Optional
withCSS selector search string.
Use to specify search criteria for finding element(s). You can find elements by selector, dataset entries, or attributes.
To search for the existence of an attribute or dataset property (not the value), set the value to
null
.