xxxxxxxxxx
//revising Ankur's answer
//Syntax:
$(selector).css({property-name:property-value});
//Example:
$('.bodytext').css({'color':'red'});
xxxxxxxxxx
$("selector").css("property", "value");
// Example:
$("div").css("background-color", "red");
xxxxxxxxxx
$("selector").css("property", "value");
// Example:
$("div").css("background-color", "red");
xxxxxxxxxx
var sheets = document.styleSheets;
$.each(sheets, (index) => {
let url = sheets[index].href;
if (url == "sheet url") {
let thisSheet = sheets[index];
//add css hover styling to stylesheet
thisSheet.insertRule('selector {color: black !important;}');
}
})