jquery: how to traverse upwards incrementally (adding parent()) via function?
<p>this code below selects all the given children from the parent.</p>

<pre><code>$(this).parent().find(this.attr("tagName").toLowerCase())
</code></pre>

<p>however, i dont know how to traverse upwards with the parent(). i would require a function that would automatically keep adding .parent() each time the function is called.</p>

<p>For example, i call function once and it returns
<code>$(this).parent().find(this.attr("tagName").toLowerCase())</code></p>

<p>I call the function for second time again and it returns
<code>$(this).parent().parent().find(this.attr("tagName").toLowerCase())</code></p>

<p>Third time,
<code>$(this).parent().parent().parent().find(this.attr("tagName").toLowerCase())</code></p>
