Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

DomUtils.getElementById

function getElementById(
id: string | ((id: string) => boolean),
nodes: Node | Node[],
recurse?: boolean,
): Element | null;
§
getElementById(id: string | ((id: string) => boolean), nodes: Node | Node[], recurse?: boolean): Element | null
[src]

§Parameters

§
id: string | ((id: string) => boolean)
[src]

The unique ID attribute value to look for.

§
nodes: Node | Node[]
[src]

Nodes to search through.

§
recurse?: boolean optional
[src]

Also consider child nodes.

§Return Type

§

The node with the supplied ID.