jquery if anywhere in docuement is click, check to see if clicked element has a class code example
Example: jquery if class clicked
$('.yourClass').click(function(e){
//do something here
});
$('.yourClass').click(function(e){
//do something here
});