Hi,
How do I add/remove a class from a div when it already has one or more classes?
<div class="class1 class2" id="id1">some text</div>
$("#id1").toggleClass("class3"); // doesn't work
$("#id1").toggleClass(" class3"); // doesn't work
Do I have to parse the string?