Following a jQuery piece of code, I am trying to get the button icon which is inside the <button>
of the next element which tells me if the icon is of trash type or something else so on that basis, I can write my logic
Trying it like this:
$(this).parent().next().find('td').eq($(this).index()-1).closest('button').html();
but I get this error:
and trying to find value of the next tr
<td>
<button type="button"><i class="fa fa-trash"></i></button></td>