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
Maybe $("#table tr:first").after("<tr><td>some</td><td>content</tr></tr>");
may be easier? Here's demo.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With