jquery button click trigger working only with first button
<p>why only the first button onclick is triggered ? i 2 others don't trigger any event when i click them , also no error in the console
i have :</p>

<pre><code>&lt;script&gt;
$(document).ready(function(){

             var name_of_sender ="";
             var text_of_sender ="";

             var $dialog = $('&lt;div&gt;&lt;/div&gt;')
            .html('This dialog will show every time!')
            .dialog({
                autoOpen: false,
                title: 'Basic Dialog'
            });



            $("#edit_text").click(function() {

                var butName = $(this).attr("name");
                var user_id = butName.split("_")[1];
                alert(user_id);
                name_of_sender = $('#username_'+user_id).html();
                text_of_sender = $('#text_'+user_id).html();

                alert(name_of_sender);
                alert(text_of_sender);

                $dialog.dialog('open');
                // prevent the default action, e.g., following a link
                return false;
            });
});
&lt;/script&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
    &lt;td id="username_33"&gt;test&lt;/td&gt;
    &lt;td id="text_33"&gt;asdasdasd&lt;/td&gt;
    &lt;td&gt;2012-09-27&lt;/td&gt;
    &lt;td&gt;217.xx.xx.6&lt;/td&gt;
    &lt;td&gt;
    &lt;button id="edit_text" name="id_33"&gt;Edit&lt;/button&gt;
    &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td id="username_34"&gt;test&lt;/td&gt;
    &lt;td id="text_34"&gt;asdasdasd&lt;/td&gt;
    &lt;td&gt;2012-09-27&lt;/td&gt;
    &lt;td&gt;217.xx.xx.6&lt;/td&gt;
    &lt;td&gt;
    &lt;button id="edit_text" name="id_34"&gt;Edit&lt;/button&gt;
    &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td id="username_35"&gt;test&lt;/td&gt;
    &lt;td id="text_34"&gt;asdasdasd&lt;/td&gt;
    &lt;td&gt;2012-09-27&lt;/td&gt;
    &lt;td&gt;217.xx.xx.6&lt;/td&gt;
    &lt;td&gt;
    &lt;button id="edit_text" name="id_35"&gt;Edit&lt;/button&gt;
    &lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</code></pre>
