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