From FirebugWiki
Revision as of 17: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 a single HTML or XML element with the given id. This means it is actually a shortcut for document.querySelector().

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





Selector used to match the element to return. This follows the syntax of document.querySelector(). (required)



This returns the element with the id element.

See also[edit]