I have a table with id="#table" and then the first row with id="headings", now directy after the heading row I need to insert a new row
I use the following code
$("#headings").after($("#table").prepend("<tr>...</tr>"));
but I think I’m doing something wrong here
Well,
.after()ref and.prepend()ref require a “HTML string”, a “DOM node” or a “jQuery” object as argument.So it would be actually enough to call