Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

document selector query change value

// select all elements with a custom class
var elements = document.querySelectorAll(".myClass");
// change the properties in the elements to whatever you want
elements.forEach(e => {
	e.value = "test"
	e.setAttribute("style", "display: none;")
})
 
PREVIOUS NEXT
Tagged: #document #selector #query #change
ADD COMMENT
Topic
Name
2+8 =