class using function if condition in jquery click code example Example: jquery if class clicked $('.yourClass').click(function(e){ //do something here });