how to check if class is added on click jquery code example
Example 1: detect if an element has a class jQurey
$("#EL_ID").hasClass("CLASS_NAME");
Example 2: jquery if class clicked
$('.yourClass').click(function(e){
//do something here
});
$("#EL_ID").hasClass("CLASS_NAME");
$('.yourClass').click(function(e){
//do something here
});