I have a table being populated and I would like the td id to be the id number for the data that was returned. How do I assign an id to a td from jquery?
var $tr = $('<tr><td class="name"></td></tr>').insertAfter('#newTable tr:last');
$tr.find('.name').html(data.Name);
//How do I assign data.id to <td class="name"> ?