Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
function domElementsByName
import { domElementsByName } from "https://deno.land/x/simple_utility@v2.2.1/mod.full.ts";

Find all elements with name attribute.

Examples

Example 1

const dom = domDecode("<input name='foo'>");
const result = domElementsByName(dom, "foo");

Parameters

element: Element
name: string