Answers for "javascript remove a css property"

7

javascript remove css class

//remove a css class from an element
document.getElementById("myElementID").classList.remove("class_name");
Posted by: Guest on July-31-2019
1

js remove specific css property

// OPTION 1:

el.style.removeProperty('zoom');

// OPTION 2:

el.style.zoom = "";
Posted by: Guest on July-15-2020

Code answers related to "javascript remove a css property"

Code answers related to "Javascript"

Browse Popular Code Answers by Language