Answers for "add class queryselector"

1

add class queryselector

const element = document.querySelector("#box");

element.classList.add("class-name");
Posted by: Guest on April-02-2020
0

add class queryselector

<div id="box"></div>
Posted by: Guest on April-02-2020

Code answers related to "add class queryselector"

Code answers related to "Javascript"

Browse Popular Code Answers by Language