テキストの色のクラスの名付け例
.textRed
jくえり
addClass("クラス名") クラスを付与
↑↓
removeClass("クラス名") クラスを削除
引数の指定がないと全クラスを削除する
$("p").removeClass();//p要素についているクラスを全部なしに
hadClass();
そのクラスを持っているかたいていifと組み合わせて判定する
if ($("p").hadClass("hoge")){//pにclass hogeがついていたら
console.log("hogeee");
};