Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pup/plugins/web-interface/static/js/ui.js>setTextContentBySelector

Universal process manager built in Deno
Go to Latest
function setTextContentBySelector
import { setTextContentBySelector } from "https://deno.land/x/pup@1.0.0-rc.11/plugins/web-interface/static/js/ui.js";

Helper function to set text content of DOM elements by selector. This function will not interpret the text as HTML.

Parameters

selector
  • The selector for the DOM elements.
text
  • The text to be set.