Add and remove multiple classes in jQuery
Add multiple classes:
$("p").addClass("class1 class2 class3");
or in cascade:
$("p").addClass("class1").addClass("class2").addClass("class3");
Very similar also to remove more classes:
$("p").removeClass("class1 class2 class3");
or in cascade:
$("p").removeClass("class1").removeClass("class2").removeClass("class3");
You can separate multiple classes with the space:
$("p").addClass("myClass yourClass");
http://api.jquery.com/addClass/