If there is a CSS rule that uses !important, is there a way to remove the !important rule so that I can make further downstream style changes with JS or jQuery?
theirs.css
div.stubborn { display: none !important; }
mine.js
$('.stubborn').fadeIn(); // won't work because of !important flag
Unfortunately, I do not have control over the style applying the !important rule so I need a work-around.
Unfortunately, you cannot override
!importantwithout using!importantas inline/internal style below the includedtheirs.css.You can define a
!importantstyle and add it to.stubbornthen adjust the opacity.. See below,CSS:
JS:
DEMO: http://jsfiddle.net/jjWJT/1/
Alternate approach (inline),
DEMO: http://jsfiddle.net/jjWJT/