I want to get a parent element with the specified tag name.
Code example:
<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 tagname.
jquery parent
rahim asgari Nov 15 '10 at 15:02 2010-11-15 15:02
source share