Removing a class in jQuery
There is a similar method for removing a class - removeClass. It removes the class specified in the parameter without affecting the others.
In the following example, the paragraph has an attribute class="www
zzz":
<p class="www zzz" id="test">text</p>
Let's remove the last class zzz:
$('#test').removeClass('zzz');
HTML the code will look like this:
<p class="www" id="test">text</p>
Remove class www from li.