$
From FirebugWiki
(Difference between revisions)
Sebastianz (Talk | contribs) m (Added hint about this being a shortcut) |
Sebastianz (Talk | contribs) m (Added hint that the parameter is required) |
||
| Line 3: | Line 3: | ||
== Parameters == | == Parameters == | ||
=== id === | === id === | ||
| - | Id of the element to return. | + | Id of the element to return. '''(required)''' |
== Examples == | == Examples == | ||
Revision as of 21:39, 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. (required)
Examples
$("element")
This returns the element with the id element.