JavaScript Tutorial

check element has a particular class

$("#elementid").hasClass("class");