[jQuery] Table Manipulation
Hello Friends,
I'm trying to create a dynamic table using jQuery
- Manipulation/appendTo. Here is my code below:
$("#btnAdd").live("click", function()
{
$("<tr><td><input type='text'/></td><td><input type='text'/></
td><td><input type='text'/></td></tr>").appendTo("#tblGrid");
});
The above code creates 3 textboxes in a row. When I check the HTML
Source, table rows are not created, so when I hit the server (asp.net
and c#), the row count is 0. Is this the right way to create a row or
any other method is available?
Thanks in advance,
achu