title: Get value of element on which the event fired
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1644342/select-inner-text-jquery">Select inner text (jQuery)</a>  </p>
  </blockquote>
  
  
  
  <p>I have a span:</p>
  
  <pre><code>&lt;span class="test"&gt; target_string &lt;/span&gt;
  </code></pre>
  
  <p>And the event, that is fired on click on any element of the page.</p>
  
  <pre><code>$('body').click(function(event){
    if ($(event.target).attr('class') == 'test'){
      alert(???);
    }
  }
  </code></pre>
  
  <p>How can I obtain target_string value?</p>