Answers for "how to add important in javascript"

2

js set important style

function myFunction() {
    var x = document.querySelectorAll("#testDiv p.example");
    x[0].style.setProperty("background-color", "red", "important");
}
Posted by: Guest on September-14-2020

Code answers related to "how to add important in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language