$

From FirebugWiki

(Difference between revisions)
Jump to: navigation, search
m (moved $(id) to $: Avoid parameters to allow linking to it from within Firebug)
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.

Personal tools