<h3>BAŞLIK</h3>
<p>PARAGRAF</p>
<span>SPAN</span>
<div></div>
span{margin-bottom:20px; display:block;}
$("p, a, h3").click(function(event){
  $("div").html("Tetiklenen " + event.target.nodeName + " elementi.");
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. //cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js