Difference between revisions of "$"

From FirebugWiki
Jump to: navigation, search
(Added description of syntax and linked back to Command Line API)
Line 20: Line 20:
== See also ==
== See also ==
[[Command Line API]]
* [[Command Line API]]

Revision as of 02:47, 5 July 2012

This command returns a single HTML or XML element with the given id. This means it is actually a shortcut for document.getElementById().

If the JavaScript on the page already defines $ for something else (like e.g. jQuery does), it will not be overwritten by this command.





Id of the element to return. (required)



This returns the element with the id element.

See also