Issue
How can assign multiple css classes to an html element through javascript without using any libraries?
Solution
Try doing this...
document.getElementById("MyElement").className += " MyClass";
Got this here...
Answered By - Ryan
How can assign multiple css classes to an html element through javascript without using any libraries?
Try doing this...
document.getElementById("MyElement").className += " MyClass";
Got this here...
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.