Answers for "javascript important"

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
0

how to add important tag js

$(".className").each(function () {
	this.style.setProperty('display', 'inline-block', 'important');
}
                     
//jQuery answer to avoid creating functions
Posted by: Guest on October-26-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language