.click() doesn't work a second time
<p>As a beginner in jQuery I'm trying to understand how to handle .click().</p>

<p>My event click function :</p>

<pre><code>&lt;script language="javascript" type="text/javascript"&gt;
    $(document).ready(function() {

$('.del').click(function() {

        var lien = $(this).attr("title");

        $.post(lien, function(data) {

        $('#result').empty();
        $('#result').append(data);

        })
        });
&lt;/script&gt;
</code></pre>

<p>The span :</p>

<pre><code>&lt;span title="&lt;?php echo base_url().'del/cat/'.$cat-&gt;idcategories ?&gt;"class="del alignright"&gt;supprimer&lt;/span&gt;
</code></pre>

<p>This works the first time but not after that. Is this happening because I'm using attr()?</p>

<p>Any explanation of the expected behavior would be very much appreciated.</p>
