I have a href link under my table and I want to be able to manipulate the rows of the table by clicking on this link, but I can’t get them!
here is my html
<div> <div> <a href="#remove" class="removelink" > remove </a> </div> <table> <tr> <td></td> </tr> </table> </div>
I want to do something like:
$('.removelink').click(function(){ $(this).parent().siblings('table tr:last').remove(); })
I can get to the table
$(this).parent().siblings('table')
but i cant get the lines with something like
$(this).parent().siblings('table tr')
source share