use of eq() and for each
use of eq() and for each
Hi,
I want to use eq() and each() functions to delete elements from the html table. In below example, I want to delete all <li>'s with id="newInsert" except first element.
<table id="dr_productTbl">
<tr>
<td class="dr_qty">1</td>
<td class="productName">Kaspersky Anti-virus
<ul>
<li class="activation_code"></li>
<li class="download"></li>
<li class="newInsert">Offer for the Product</li>
</ul>
</td>
</tr>
<tr>
<td class="dr_qty">1</td>
<td class="productName">Extended Download center
<ul>
<li class="activation_code"></li>
<li class="download"></li>
<li class="newInsert">The line which I want to delete</li>
</ul>
</td>
</tr>
<tr> ...... </tr>
<tr>....... </tr>
....
</tbody>
</table>