The following is my code
$(document).ready(function(){
$(\'#click\').click(function(){
$(\'#table\').append(\'&a
-
If you want to remove the last table row of #table
, you need to target it with your selector, and then call $.remove()
against it:
$('#remove').on("click", function(){
$('#table tr:last').remove();
})
- 热议问题