What is the best method in jQuery to add an additional row to a table as the last row?
Is this acceptable?
$(\'#myTable\').append(\'
-
As i have also got a way too add row at last or any specific place so i think i should also share this:
First find out the length or rows:
var r=$("#content_table").length;
and then use below code to add your row:
$("#table_id").eq(r-1).after(row_html);
- 热议问题