title: Getting the ID of the element that fired an event
body: <p>Is there any way to get the ID of the element that fires an event?</p>
  
  <p>I'm thinking something like:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
    $("a").click(function() {
      var test = caller.id;
      alert(test.val());
    });
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script type="text/javascript" src="starterkit/jquery.js"&gt;&lt;/script&gt;
  
  &lt;form class="item" id="aaa"&gt;
    &lt;input class="title"&gt;&lt;/input&gt;
  &lt;/form&gt;
  &lt;form class="item" id="bbb"&gt;
    &lt;input class="title"&gt;&lt;/input&gt;
  &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Except of course that the var <code>test</code> should contain the id <code>"aaa"</code>, if the event is fired from the first form, and <code>"bbb"</code>, if the event is fired from the second form.</p>