JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<tr class="check odd">
<td class="item-product-img"><a href="http://example.com/irig-keys" title="IK Multimedia iRig Keys " class="cat_prod_img"></a></td>
<td class="item-product-name">
<h2 class="cart_prod_name">
<a class="RemovedProduct_Track" href="http://example.com/irig-keys">IK Multimedia iRig Keys </a>
</h2>
</td>
<td class="item-product-price-price">
<span class="cart-price">
<span class="price">$139.00</span>
</span>
</td>
<td class="a-center item-product-qty" width="75">
<div class="qty_input"><input name="cart[3038][qty]" id="cart[3038][qty]" value="1" size="4" title="Qty" class="input-text qty" maxlength="12"></div>
</td>
<td>
<span class="cart-price">
<span class="price">$139.00</span>
</span>
</td>
<td class="a-center item-product-edit">
<a href="http://example.com/checkout/cart/configure/id/3038/" title="Edit item parameters" class="cart_edit_bt"></a>
</td>
<td class="a-center item-product-delete last">
<a href="" title="delete" class="cart_delete_bt">Delete button</a>
</td>
</tr>
<tr class="check odd">
<td class="item-product-img"><a href="http://example.com/psre343" title="Yamaha PSRE343" class="cat_prod_img"></a></td>
<td class="item-product-name">
<h2 class="cart_prod_name">
<a class="RemovedProduct_Track" href="http://example.com/psre343">Yamaha PSRE343</a>
</h2>
</td>
<td class="item-product-price-price">
<span class="cart-price">
<span class="price">$279.00</span>
</span>
</td>
<td class="a-center item-product-qty" width="75">
<div class="qty_input"><input name="cart[3040][qty]" id="cart[3040][qty]" value="1" size="4" title="Qty" class="input-text qty" maxlength="12"></div>
</td>
<td>
<span class="cart-price">
<span class="price">$279.00</span>
...
CSS
#clickme {
background-color: red;
}
#extra {
display: none;
width: 100px;
background-color: blue;
}
JavaScript
jQuery('.cart_delete_bt').click(function(){
var productName = $(this).closest('tr').find('.item-product-name .cart_prod_name .RemovedProduct_Track').text();
alert(productName);
});