Guest User

Untitled

a guest
Aug 15th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. trouble removing element using remove()
  2. console.log($(this).closest('tr').clone().find('td:last')); //this is the td that i want to remove
  3. $(this).closest('tr').clone().remove('td:last').append('<td><input type="button" value="Del" class="removesystem"/></td>').appendTo('.targetbox table'); //doesnt get removed here. i tried with .end() after remove() as well, without any success.
  4.  
  5. $(this).closest('tr').clone().find('td:last').remove().end().append( yadda yadda yadda )
  6.  
  7. $(this).closest('tr').clone().find('td:last');
  8.  
  9. $(this).closest('tr').clone().find('td').remove(':last').append('<td><input type="button" value="Del" class="removesystem"/></td>').appendTo('.targetbox table');
  10.  
  11. $(this).closest('tr').find('td:last').remove();
Add Comment
Please, Sign In to add comment