how to set css style using jquery
$('#element').css('display', 'block'); /* Single style */
$('#element').css({'display': 'block', 'background-color' : '#2ECC40'}); /* Multiple style */
how to set css style using jquery
$('#element').css('display', 'block'); /* Single style */
$('#element').css({'display': 'block', 'background-color' : '#2ECC40'}); /* Multiple style */
add style to stylesheet via jquery
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;}');
}
})
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us