Answers for "how to add something to a classname"

0

add classnames to body

openModal = (event) => {
  document.body.classList.add('modal-open');
  this.setState({ showModal: true });
}
hideModal = (event) => {
  document.body.classList.remove('modal-open');
  this.setState({ showModal: false });
}
Posted by: Guest on February-14-2020
0

createelement add class

new_row.className = "aClassName";
Posted by: Guest on December-17-2021

Code answers related to "how to add something to a classname"

Code answers related to "Javascript"

Browse Popular Code Answers by Language