InDom.getById(id)
Shortcut: $idFetches the element with the specified ID and returns an InDom object that contains it.
Returns null if no element with the given ID is found.Parameters:
Returns null if no element with the given ID is found.Parameters:
id {string} - The ID of the element to fetch
Returns: {InDom | null} - InDom object, or null when not foundExamples:// You could get the InDom object by its ID using the general selector method:
const example1 = $1("#test");
// But it's more efficient, especially in HTML documents with many DOM elements,
// to get it directly by ID:
const example2 = $id("test");Next: new InDom »