How to insert Many Button handlers in Dynamic table in JQuery
<p>I am making Notice admin page using JQuery. and I want to attach buttons(edit, remove) at each list item. how to control each button or how to insert the handling function?  Also, I should respectively edit/remove using JSON. any better idea? code below.</p>

<blockquote>
  <p>$.getJSON('listnotice.php', function(data) {</p>
</blockquote>

<pre><code>  $.each(data, function(index,entry) {

        table += '&lt;tr&gt;';  
        table += '&lt;td&gt;' +entry["content"] + '&lt;/td&gt;';        
        table += '&lt;td&gt;&lt;button class=edit id=' + index + '&gt;edit&lt;/button&gt;&lt;button id=remove&gt;remove&lt;/button&gt;&lt;/td&gt;';
        table += '&lt;/tr&gt;';
    });

    $("#noticeList").append(table)

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

        alert('Handler for .click() called.');
    });
</code></pre>
