How to override CSS with JavaScript,
published: 2010-08-31 09:56:04
A pretty nice snippet that I use all the time to override CSS set with the !important switch.
function addNewStyle(newStyle) {
var styleElement = document.getElementById('styles_js');
...