Я хочу получить родительский элемент Element, у которого есть указанное имя тега .
Пример кода:
<table>
<tr>
<td>
<input type='button' id='myId' />
</td>
</tr>
</table>
Теперь мне нужно что-то вроде этого:
$('#myId').specificParent('table'); //returns NEAREST parent of myId Element which table is it's tagname.