The text of this article is not in this database — only its details are. Read it on the old site: Apply/Change CSS dynamicaly using Javascript
1 Comment
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Apply/Change CSS dynamicaly using Javascript
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
krishna pPosted Dec 20, 2012, 4:48 AM
can't we modify the property in the same class instead of assigning the new one? For example if (document.getElementById(divId).className == 'Error') { document.getElementById(divId).className = 'Warning'; } here if it is error we are changing that to warning..instead can't we change the color property value in the error class itself?