To add lines, I wrote code like this
$('#tab1 tbody ').append('<tr id='+i+'><td>'+k+'</td><td>'+l+'</td><td>'+m+'</td></tr>');
in the previous snippet iis a global value.
Now, if I try to select a newly added row, it does not recognize .. for selection, I wrote like this
$('#tab1 td').click(function(){
alert(i);
$(this).parent().remove();
});
Do you see errors?
source
share