how to detect when specific class added to element in jquery code example Example: detect if an element has a class jQurey $("#EL_ID").hasClass("CLASS_NAME");