MCPcopy Create free account
hub / github.com/breck7/scroll / setValueOfElementsWithClassHack

Method setValueOfElementsWithClassHack

external/.scrollLibs.js:24040–24045  ·  view source on GitHub ↗
(className, value = "")

Source from the content-addressed store, hash-verified

24038 el.value = value
24039 }
24040 setValueOfElementsWithClassHack(className, value = "") {
24041 const els = document.getElementsByClassName(className)
24042 for (let el of els) {
24043 el.value = value
24044 }
24045 }
24046 getElementByTagName(tagName) {
24047 return document.getElementsByTagName(tagName)[0]
24048 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected