Dynamically setting classnames from style sheet

I was trying to find a way to dynamically set class name from stylesheet using javascript.
many of the sites adviced to use

obj.style.className=='', but this did not work!

instead use this :
obj.className=='' -- this work is IE and Firefox.

Comments

Anonymous said…
You write very well.

Popular posts from this blog

Error when Installing SQL Server 2008 R2 Management Studio

Windows 7 and GoToMyPC - Configure the Domain Group Policy to allow GoToMyPC to send Ctrl-Alt-Del

Technical Team Lead Interview Questions