Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js set important style

function myFunction() {
    var x = document.querySelectorAll("#testDiv p.example");
    x[0].style.setProperty("background-color", "red", "important");
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #set #important #style
ADD COMMENT
Topic
Name
2+6 =