$

From FirebugWiki
Revision as of 14:39, 4 July 2012 by Sebastianz (Talk | contribs) (Added hint that the parameter is required)

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

Parameters

id

Id of the element to return. (required)

Examples

$("element")

This returns the element with the id element.