title: how to get clicked element text using jQuery?
body: <p>I want to get the text of clicked element in an alert of jQuery. See example below
  <a href="https://jsfiddle.net/pymd4n04/2/" rel="nofollow noreferrer">https://jsfiddle.net/pymd4n04/2/</a></p>
  
  <pre><code>jQuery(".results").click(function() {
  event.preventDefault();
      jQuery(this).find('h3').click(function() {
        var text = jQuery(this).text();
  console.log(text.trim());
  alert(text.trim());
      });
  });
  </code></pre>
  
  <p>But when I click first time, empty alert is shown and when I click 2nd the value is shown but twice alert. and keep increment alerts. </p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks in advance</p>