javascript - How to appendChild() on Jquery selected DOM -
i trying append child via jquery on of selected html element.
my code:
var table = $(this).parent(); console.log(table) table.appendchild(table_row);
console:
[table.table.unit-list, prevobject: jquery.fn.init[1], context: tr] //log ... appendchild not function //error
just use .append()
description: insert content, specified parameter, end of each element in set of matched elements.
table.append(table_row);
Comments
Post a Comment