Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
function domValuesPerId
import { domValuesPerId } from "https://deno.land/x/simple_utility@v2.3.2/src/deno_ext/dom.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>