Select a specific anchor jquery
<p>i have 6 links on my page like </p>

<pre><code>&lt;a rel='popup'&gt;&lt;/a&gt;
</code></pre>

<p>i am selecting the link as </p>

<pre><code>$(document).ready(function(){
    var popUp = $("a[rel='popup']");
    popUp.click(function(e){
        e.preventDefault();         
        alert("pop clicked");  &lt;-- apperaring 6 times
        var thiis = $(this);
        var href = thiis.attr("href");
        });
    });
</code></pre>

<p>the problem is alert pop clicked is appearing 6 times, can anybody help me figure out the problem. I want it to appear only once
Thanks.</p>
