Difference between revisions of "$$"

From FirebugWiki
Jump to: navigation, search
(Added description of syntax and linked back to Command Line API)
m (Added categories)
(One intermediate revision by the same user not shown)
Line 30: Line 30:
== See also ==
== See also ==
[[Command Line API]]
* [[Command Line API]]

Latest revision as of 16:01, 21 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().





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



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.

See also[edit]