Skip to main content
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.1.0/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>