Is there a way to assign multiple CSS classes to an HTML element, including one regular class and one or more JavaScript variables as classes?
I attempted to do this by adding it in as a typical script:
<div class="style-a <script type="text/javascript">style-b</script>">
However, I came across a suggestion recommending the following method:
<div onload="this.class=style-a;">
But I have a feeling that approach would only accommodate one class.
Any thoughts on how to achieve this? Thank you in advance.