The following is my code
$(document).ready(function(){
$(\'#click\').click(function(){
$(\'#table\').append(\'&a
-
If You want to remove row itself when click on table row then
$('table tr').on("click", function(){
$(this).remove();
});
If you want to add row on click of click button at the end of table
$('#click').click(function(){
$('#table').append('Xyz ');
})
- 热议问题