-2

The button is on this TR and i can easily remove it with the following code. How do i remove the NEXT TR

E.g.

<TR></TR> --> Code works with removing this
<TR></TR> --> Remove the next TR THis one

var $this = $(this),
orderTr = $this.parents('tr');
orderTr.remove();
CodeGuru
  • 3,645
  • 14
  • 55
  • 99
  • Come on now. This is among the most basic operations in jQuery. Couldn't you at least visit the API docs and type "next" into the search bar? http://api.jquery.com/ –  Sep 26 '14 at 16:36

1 Answers1

1

You can use like

 $(this).closest("tr").next().remove();

or

$(this).parents("tr").next().remove();
Anoop Joshi P
  • 25,373
  • 8
  • 32
  • 53