jQuery - How to select the first parent of an element and add a new class "testclass"
<pre><code>&lt;li id="ll"&gt;
    &lt;li id="li_1" &gt;
        &lt;label class="description" for="element_1"&gt;First Name &lt;/label&gt;
        &lt;div&gt;
            &lt;input id="element_1" name="element_1" class="element text medium" type="text"/&gt; 
        &lt;/div&gt; 
    &lt;/li&gt;
&lt;/li&gt;
</code></pre>

<p>Given element 'element_1', how to select its first parent with tag name as li?</p>

<p>Thank you</p>
