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

Drupal - How to display webform node in a block?

Error when Installing SQL Server 2008 R2 Management Studio

Technical Team Lead Interview Questions