Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/simple_utility/mod.full.ts>domValuesPerId

Simplify processing for Deno.
Latest
function domValuesPerId
import { domValuesPerId } from "https://deno.land/x/simple_utility@v2.3.2/mod.full.ts";

Find all input textarea elements with id attribute and convert them to key-value record.

Examples

Example 1

const dom = domDecode("<input id='foo'>");
const result = domValuesPerId(dom);

Returns

Record<string, string>