From FirebugWiki

(Difference between revisions)
Jump to: navigation, search
m (Added categories)
Line 31: Line 31:
== See also ==
== See also ==
* [[Command Line API]]
* [[Command Line API]]

Latest revision as of 00:01, 22 November 2013

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().


[edit] Syntax


[edit] Parameters

[edit] selector

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

[edit] Examples


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.


This returns all checkboxes.

[edit] See also

Personal tools