How to append a value with button's ID in runtime?
<p>I am using below javaScript code to create table in runtime. And i somewhat assumed to append a value into the ID of the button. Will it work. I am confused because of double quotes.</p>

<pre><code>function createTable(){
EmployeeManagement.getList(function(data){
var employee = data;

var x = "&lt;table border= 1 &gt;";
    x+="&lt;thead&gt; " + "&lt;tr&gt;" + "&lt;td&gt;" + "Check" + "&lt;/td&gt;&lt;td&gt;" + "ID" + "&lt;/td&gt;&lt;td&gt;" + "Name" + "&lt;/td&gt;&lt;td&gt;" + "Age" + "&lt;/td&gt;&lt;td&gt;" + "Dept" + "&lt;/td&gt;&lt;td&gt;" + "Option" + "&lt;/td&gt;&lt;/tr&gt;&lt;/thead&gt;";
    for(i = 0; i&lt;data.length; i++)
    {
        var id = data[i].id;
    x+= "&lt;tr&gt;";
    x+= "&lt;td&gt;" + "&lt;input type=checkbox name=Employee value='emp'+id /&gt;"
    x+= "&lt;td&gt;" + data[i].id + "&lt;/td&gt;&lt;td&gt;" + data[i].name + "&lt;/td&gt;";
    x+= "&lt;td&gt;" + data[i].age + "&lt;/td&gt;&lt;td&gt;" + data[i].dept + "&lt;/td&gt;";
    x+= "&lt;td&gt;" + "&lt;input id='edit'+id type='button' value='Edit' onclick=edit(this.id) /&gt;" + "&lt;/td&gt;"; 
    x+= "&lt;/tr&gt;";
    }
    x+= "&lt;/table&gt;";
    $('#tableHolder').html(x);
});
   }
</code></pre>

<p><strong>here, i want to append the id value, to the ID value id BUTTON.
I already coded for it. Will it work or how to make it work.
I can use jquery means, how???
Any suggestions would be appreciative...
Thanks</strong></p>
