event.target in jquery
<p>I have a table and I want to : for each click on item in table, this item will be added to another table. This is my code:</p>

<pre><code>$("#listResult table td").click(function(e){
    $("#addGroupMemberOfAdd").click(function(){
        alert("Add to List Member");
        $("#listMember table").append(
            '&lt;tr&gt;&lt;td style="padding-left: 5px;"&gt;'+$(e.target).attr('rel')+'&lt;/td&gt;&lt;/tr&gt;');
        return false;
    })
    return false;
}) 
</code></pre>

<p>But that encounted a problem: if one table has 3 items, I click on item1, item1 is added to the other table, but when I click on item2, item1 is added to the other table again and item2 is added to this table. How to fix it????</p>
