title: jQuery check click for each link
body: <pre><code>$("#showKey").each(
      $(this).click(function(){
          alert($(this).attr("value"));
      })
  );
  </code></pre>
  
  <p>And</p>
  
  <pre><code>&lt;a id="showKey" href="#" value="{{ customer.key }}"&gt;
     &lt;span class="icons icon-key"&gt;&lt;/span&gt;
     Show key
  &lt;/a&gt;
  </code></pre>
  
  <p>The alert gives and undefined output, just 'undefined'. I have a list of customers and a click on #showKey should reveal the key for the clicked customer.</p>
  
  <p>Whats wrong with my code?</p>