Hi, how can i insert a new class into the current css?
var myStyle = $("head > style:eq(2)");
if( document.styleSheets[2].cssRules ) {
myStyle.insertRule('#test { display:block; }', 0);
} else {
if ( document.styleSheets[2].rules ) {
myStyle.addRule('#test', 'display:block;');
}
}
dd