...

View Full Version : Change CSS Class



WindInFace
12-10-2009, 09:54 PM
Hi,

I need to change my class, but this isn't doing it for me and I don't see why. No error messages, but nothing happens.


.myClass {
background-color: yellow;
}

document.getElementById("myId").setAttribute("class","myClass");


Thank You in Advance for Your Help,

Lou

WindInFace
12-10-2009, 10:09 PM
Of course after I post a question I get it working.

Thanks for having a look at my question.

Lou

LE1
12-14-2009, 08:48 PM
Thu=ought css would be better anyway?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum