I\'ve been working with jQuery for a while, but now I want to write something in pure javascript and it\'s prooving to be challenging.. One of my biggest problems at the mom
You can use:
document.getElementById("MyElement").className = "NewClass";
to change the class of the element and then just define the style for that new class in your CSS file