$$

From FirebugWiki
Revision as of 16:01, 21 November 2013 by Sebastianz (Talk | contribs) (Added categories)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This command returns an array of HTML or XML elements that match the given CSS selector. This means it is actually a shortcut for document.querySelectorAll().

Syntax[edit]

$$(selector)

Parameters[edit]

selector[edit]

Selector used to match the elements to return. This follows the syntax of document.querySelectorAll(). (required)

Examples[edit]

$$(".someClass")

This returns all elements having the class someClass assigned.

$$(".someClass > span")

This returns all <span>s being direct children of elements having the class someClass assigned.

$$("input[type=checkbox]")

This returns all checkboxes.

See also[edit]