How to delete table row on click?
Here is a jsfiddle.
I want to delete only row on which del link is nested, not the last row how script is doing now.
<
remove all your inline javascript and use click event.... no need to call onclick event in the attr... and this should dot he trick.. $(this).parents('tr').remove();
try this
11
12
13
del
//---^---here remove the onclick inline function for all..
....
working fiddle here