For the complete documentation index, see llms.txt. This page is also available as Markdown.

getElementById

The method getElementById() returns the first Element within the document that matches the specific ID

document.getElementById("id") // Returns the FIRST element with the ID of id

Last updated