jquery check if clicked has class name 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
});