2011-12-16 classに属しているか jquery javascript 今日はある要素が特定のclassに属しているか知りたいことがあった。 if ($(this).is('.myclass')) { alert("has the class"); }