Chrome Devtool Tips – $*() Aliases

Chrome Devtool Tips – $*() Aliases

Chrome Devtool provides the shortcut aliases to access the document.querySelector and document.querySlectorAll functions.

$() – Alias for document.querySelector function. It may overridden by jQuery when it used in your site.

Example:

Alias for query selector function

$$() – Alias for document.querySelectorAll function.

Example:

Alias for query selector all function

$x() – Function to find the DOM elements by an XPath expression.

Example:

Find elements by xpath

Leave a Reply

Your email address will not be published. Required fields are marked *