Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
function getElementsByName
import { getElementsByName } from "https://deno.land/x/simple_utility@v2.0.2/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