$(row).appendTo($('<tr>'))
This adds the line to the newly created <tr>. This returns a jQuery reference to row- NOT to the newly created<tr>
.appendTo(table);
Adds rowin table, removing it from the newly created <tr>.
Try this instead. He gets links directly.
$('<tr>').append(row).appendTo(table);
source
share