$$
From FirebugWiki
(Difference between revisions)
Sebastianz (Talk | contribs) (Added description of syntax and linked back to Command Line API) |
Sebastianz (Talk | contribs) m |
||
| Line 30: | Line 30: | ||
== See also == | == See also == | ||
| - | [[Command Line API]] | + | * [[Command Line API]] |
Latest revision as of 10:47, 5 July 2012
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().
Contents |
[edit] Syntax
$$(selector)
[edit] Parameters
[edit] selector
Selector used to match the elements to return. This follows the syntax of document.querySelectorAll(). (required)
[edit] Examples
$$(".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.