I am having a <li>
like this:
<li class="product type-product status-publish"></li>
I am adding a class with this code:
$("li").addClass("firstclass");
The output of it is like this:
<li class="product type-product status-publish firstclass"></li>
Is it possible to force the class to be in first of all the classes so the output is gonna be like:
<li class="firstclass product type-product status-publish"></li>
Hope you guys can help!