Thursday, October 2, 2008

[jQuery] Re: Inserting new row in a table

> $("#tblWrods tr:last").insertAfter(_html);

1) You spelled tblWords wrong.
2) The order is backwards. Try

$(_html).insertAfter("#tblWords tr:last");

or

$("#tblWords tr:last").after(_html);

instead.

No comments: