I want to get an Element's parent which has an specified tag name.
Sample code:
<table>
<tr>
<td>
<input type='button' id='myId' />
</td>
</tr>
</table>
Now i want something like this:
$('#myId').specificParent('table'); //returns NEAREST parent of myId Element which table is it's tagname.