How to remove previous row tr from table in jquery

0
Our Reader Score
[Total: 0 Average: 0]
Overview: Remove previous row tr from the table or Delete previous table row on click in jquery. This article explains how to remove the previous row .i.e  delete previous table row. For selecting previous element we use .prev() and with .remove() method it delete that selected element.

Description : .prev( [selector ] )   , .remove()

Get the immediately preceding sibling of each element in the set of matched elements, optionally filtered by a selector.

Code: 

 VIEW DEMO


Get your Printable Copy

NO COMMENTS

LEAVE A REPLY