But we faced some issues when we tried to use setAttribute for dynamically changing the CSS style class name for a div tag.
i-e We tried to use below code for setting "current" as CSS style class for a div tag with id "desc"
The above code worked in FireFox. But it didn't work in IE (Internet Explorer).
We came to know that we should use ‘className’ instead of 'class' in IE.
So, in IE, the code should look as below,