How about:

$row = $("<tr><td>...</td></tr>");
var newrow = $row.appendTo("#docs tbody");

On Aug 3, 11:51 am, Brad <nrmlcrpt...@gmail.com> wrote:
> If I add a row to a table in the following manner, how can I get a
> reference to the added row?
>
> var row = "<tr><td>...</td></tr>";
> var newrow;
> newrow = $('#docs tbody').append(row);
>
> With the above code new row references the tbody and not the tr.

Reply via email to