What is the best method in jQuery to add an additional row to a table as the last row?
Is this acceptable?
$(\'#myTable\').append(\'
-
I'm using this way when there is not any row in the table, as well as, each row is quite complicated.
style.css:
...
#templateRow {
display:none;
}
...
xxx.html
...
...
...
$("#templateRow").clone().removeAttr("id").appendTo( $("#templateRow").parent() );
...
- 热议问题