jquery remove all classes except code example Example: jquery remove multiple class $("p").removeClass("blue under");