So I have this table:
<table id = "editor">
<tr>
<tr class= "numberedListElement>
<td name = "aaa" ... .</td>
<td name = "b" ... .</td>
<td class="iconsType" title="Numbered list element">
<div class="iconsDiv">
<input type="button" class="numberedList1" title="nl" id="numberedL">
**<input type="button" class="numberedList1b" title="list" id="numbL">**
<input type="button" class="bulletList1" title="nl" id="bulletL">
</div>
<input type="button" class="letteredList1" title="ll" id="letteredL"></td>
</tr>
<tr>
</table>
So I need to select and delete that input.
I tried this :
$('#editor tr.numberedListElement td:last-child input')
but it returns blank.
<tr>element in there. I'm not sure that is what you intended to do."at the end of class attr.<tr class="numberedListElement">should fix but consider Lix's answer.