jquery onclick check which div has class code example Example: jquery if class clicked $('.yourClass').click(function(e){ //do something here });