Siva s
0
Q:

js set important style

function myFunction() {
    var x = document.querySelectorAll("#testDiv p.example");
    x[0].style.setProperty("background-color", "red", "important");
}
1

New to Communities?

Join the community