The following block of code isn't working: newo.find('.remove').click(function () { newo.remove(); alert('hel'); });
It should be: $('.remove').click(function () { $(this).parents('tr').remove(); }); Addicionaly check the sintaxe for: .item :last should be: .item:last (without a blank space in between) MaurĂcio -----Mensagem Original----- De: introvert Para: jQuery (English) Enviada em: quinta-feira, 25 de junho de 2009 14:04 Assunto: [jQuery] jquery adding and removing row Hello, I want to be able to add row at the end of the table with a 'remove' link which will remove specific row.