Click event only works on first click after pageload
<p>I use this popup plugin for jquery and get some strange behaviour. I have contacted the creator but got no answer and would like to ask here if there is any general problem with my code.</p>

<p>The setup:
Regular html links that open a page in a new tab (for JS disabled users).</p>

<p>The js below to catch the link click and animate a popup instead of following the link.</p>

<p>The problem:
It works the first click on every page load but therafter a click follows the href instead.</p>

<p>js</p>

<pre><code> $("a[class*='popupbox-link']").live("click",function (e) {
        if($("#popupbox").length == 0){
            $('body').append('&lt;div id="popupbox"&gt;&lt;a class="bClose"&gt;Stäng&lt;/a&gt;&lt;div id="pContent"&gt;&lt;/div&gt;&lt;/div&gt;');
        }
        var url = this.href;
        $("#popupbox").bPopup({contentContainer:'#pContent', loadUrl: url });
        e.stopPropagation();

        return false
    });
</code></pre>
