Hi,
On click of row in Random Fruit table, you are appending new to Green Fruit table but your Jquery listens to event only for element which where created at time of page load. So you to change your script slightly to
function listener(obj) {
$(document).ready(function() {
$(document).on("click","#fruityid td",function() {
... Rest of code goes here
});
});
By using $(document).on("click","element",function(){}), elements are re-initialized on click or other events.