Get parent element by id
<p>I have table </p>

<pre><code>        &lt;tr&gt;
          &lt;td id="id"&gt;2&lt;/td&gt;
          &lt;td id="type"&gt;&lt;span class="label"&gt;snippets&lt;/span&gt;&lt;/td&gt;
          &lt;td id="name"&gt;all&lt;/td&gt;
          &lt;td id="time"&gt;None&lt;/td&gt;
          &lt;td id="status"&gt;None&lt;/td&gt;
          &lt;td id="actions"&gt;&lt;i class="icon-refresh" id="refresh-parser"&gt;&lt;/i&gt;&lt;/td&gt;
        &lt;/tr&gt;
</code></pre>

<p>And i have this jQuery code</p>

<pre><code>$(document).on('click', '#refresh-parser', function(){
    var before_content = $($(this).parent());
    var parser_id = $('#refresh-parser').parent().parent().children("td:first");
    var parser_time = $('#refresh-parser').parent().parent().children("td")[3];

    //$($(this).parent()).html('&lt;div class="loading"&gt;&lt;/div&gt;');
});
</code></pre>

<p>Yes, this code works, but how i can do it by <code>id</code> on my <code>td</code> elements? </p>

<p>Thanks and sorry for such silly question...</p>
