I have this page with following HTML in 'magento' shopping cart page,How can i get the relevant product name (ex.Yamaha PSRE343) on the click event of delete (class=cart_delete_bt),if I have same classes for all products,in javascript in order to be used it in macro of Google Tag Manager.
<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="http://example.com/checkout/cart/delete/id/3038/uenc/aHR0cDovL3BhdHNtdXNpYy5leGFuYW5vMS5jb206ODA4MC9jaGVja291dC9jYXJ0Lw,,/" title="delete" class="cart_delete_bt"></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>
</span>
</td>
<td class="a-center item-product-edit">
</td>
<td class="a-center item-product-delete last">
<a href="http://example.com/checkout/cart/delete/id/3040/uenc/aHR0cDovL3BhdHNtdXNpYy5leGFuYW5vMS5jb206ODA4MC9jaGVja291dC9jYXJ0Lw,,/" title="delete" class="cart_delete_bt"></a>
</td>
</tr>
on click of the delete button i want to get the text highlighted .
I have tried it in jquery as follows
jQuery('.cart_delete_bt').closest('.check').find('.RemovedProduct_Track').html();
also i have tried it using following jquery
jQuery('.cart_delete_bt').first(1).parent().parent().first(1).children().children().attr('title');
but now i have to do it in javascript in order to implement it in GTM. Please Help.