Answers for "add multiple class from array javascript"

3

add multiple class from array javascript

const classArray = ["cl1", "cl2", "cl3"];
div.classList.add(...classArray);
Posted by: Guest on March-16-2021

Code answers related to "add multiple class from array javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language