Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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-beta.35/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.