function myFunction() {
var x = document.querySelectorAll("#testDiv p.example");
x[0].style.setProperty("background-color", "red", "important");
}
$(".className").each(function () {
this.style.setProperty('display', 'inline-block', 'important');
}
//jQuery answer to avoid creating functions