detect if an element has a class jQurey

CSS
$("#EL_ID").hasClass("CLASS_NAME");
Source

Also in CSS: