Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
function getElementsByName
import { getElementsByName } from "https://deno.land/x/simple_utility@v2.0.5/src/deno_ext/dom.ts";

Find all elements with name attribute.

Examples

Example 1

const dom = parseDOM("<input name='foo'>");
const result = getElementsByName(dom, "foo");

Parameters

element: Element
name: string