You have to give id
to td
in id selector. Before id
you need to give #
$('#idoftd').append(htmlToAppend);
If you can get the element by e.target.parentNode
then you can pass it to jQuery method to make jQuery object out of it.
$(e.target.parentNode).append(htmlToAppend);
solved How to select cell using jQuery id selector