title: Get the id of the clicked link
body: <p><strong>I'd like to get the id of the clicked link with jQuery.</strong> Why does this return <code>Undefined</code> instead?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>test = function(e) {
      alert($(e).attr('id'));
      return false;
  }
  $('.bleu').click(test)</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;a href="" class="bleu" id="h12"&gt;azeaze12&lt;/a&gt;
  &lt;a href="" class="bleu" id="h13"&gt;azeaze13&lt;/a&gt;
  &lt;a href="" class="bleu" id="h14"&gt;azeaze14&lt;/a&gt;</code></pre>
  </div>
  </div>
  </p>