Hi everyone. Quick question:

I have some code that's designed to change some CSS elements on a page when certain scenarios apply. It works on every browser except for IE7.

From searching around, I've tracked it down to the following line - but I'm not certain what exactly I need to do to fix it.
document.getElementsByClassName("class1")[0].removeAttribute("class");
I'm a javascript neophyte so the more basic you can be, the better.

Thanks in advance!