Global Index
HTML5 JS API Index > DOM Tutorials & Specs


Implemented by Document, DocumentFragment

The getElementById() method is not on elements for compatibility with older versions of jQuery. If a time comes where that version of jQuery has disappeared, we might be able to support it.

This type groups properties and / or operations together for documentation purposes and does not have an explicit JavaScript representation.

getElementById(DOMString elementId)
The getElementById(elementId) method must return the first element, in tree order, within context object's descendants, whose ID is elementId, and null if there is no such element otherwise.