it is possible by dom(scripting) to apply multiple classes to the
className attribute.
elmRef.className = 'Class1 Class2 ...' ;
but what if some other script assigns its own classes. in this case, it
would be possible to track our classes in the className attribute(by
searching in the string) and remove or add them accordingly but aren't
there any flexible approach? it would be better if className is a
collection that we could determine easily if required classes are
applied or not.
or is there any different/better approach to apply our multiple classes
without depending on other scripts on the page?
thanks