/* $('#btnDel').click(function(){ $(this).parents('tr').remove(); }) */ $(document).on('click', '#btnDel', function(){ $(this).parents('tr').remove(); }) Oke mas terima kasih , bisa menghapus, tpi kenapa ya error yg di consolnya tetap muncul ?