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 solved it this way.
Using jquery
$('#tab').append($('')
.append($('').append("text1"))
.append($(' ').append("text2"))
.append($(' ').append("text3"))
.append($(' ').append("text4"))
)
Snippet
$('#tab').append($('')
.append($('').append("text1"))
.append($(' ').append("text2"))
.append($(' ').append("text3"))
.append($(' ').append("text4"))
)
Firstname
Lastname
Age
City
Jill
Smith
50
New York
- 热议问题