$("#showKey").each(
$(this).click(function(){
alert($(this).attr("value"));
})
);
と
<a id="showKey" href="#" value="{{ customer.key }}">
<span class="icons icon-key"></span>
Show key
</a>
アラートは未定義の出力を提供します。「未定義」だけです。顧客のリストがあり、#showKeyをクリックすると、クリックした顧客のキーが表示されます。
私のコードの何が問題になっていますか?