title: How to get parent element by specified tag name using jquery?
body: <p>I want to get an Element's parent which has an specified tag name.</p>
  
  <p>Sample code:</p>
  
  <pre><code>&lt;table&gt;
     &lt;tr&gt;
        &lt;td&gt;
            &lt;input type='button' id='myId' /&gt;
        &lt;/td&gt;
     &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Now i want something like this:</p>
  
  <pre><code>$('#myId').specificParent('table'); //returns NEAREST parent of myId Element which table is it's tagname.
  </code></pre>