The following is my code
$(document).ready(function(){
$(\'#click\').click(function(){
$(\'#table\').append(\'&a
-
You can't remove like that you have to specify which node you want to remove $('#table tr:first')
and the remove it remove()
$('#remove').click(function(){
$('#table tr:first').remove();
})
http://jsfiddle.net/2mZnR/1/
- 热议问题