Skip to main content
Go to Latest
function getElementsByName
import { getElementsByName } from "https://deno.land/x/simple_utility@v2.0.8/mod.full.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