$
From FirebugWiki
(Difference between revisions)
Sebastianz (Talk | contribs) |
Sebastianz (Talk | contribs) m (Added hint about this being a shortcut) |
||
| Line 1: | Line 1: | ||
| - | This command returns a single HTML or XML element with the given id. | + | This command returns a single HTML or XML element with the given id. This means it is actually a shortcut for <code>document.getElementById()</code>. |
== Parameters == | == Parameters == | ||
Revision as of 21:31, 4 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().
Parameters
id
Id of the element to return.
Examples
$("element")
This returns the element with the id element.