// given an element: <div id="myID" class="wrapper active"> //JQuery answer if ( $("#myID").hasClass("active") ){ //true: myID has class active } else { //false: myID does not have class active }