jquery - Remove class from parent in list
<p>I need a Javascript <code>IF</code> statement that detects if: </p>

<pre><code>$('.ms-quickLaunch .menu ul.static li a .menu-item-text') == "Manage"
</code></pre>

<p>And if it does equal "Manage" then set the list to <code>.show().</code></p>

<pre><code>&lt;ul class="root static"&gt;
    &lt;li class="static linksBelow"&gt;
        &lt;a href="#" class="static menu-item"&gt;
            &lt;span class="additional-background"&gt;
                &lt;span class="menu-item-text"&gt;Manage&lt;/span&gt;
            &lt;/span&gt;
        &lt;/a&gt;
        &lt;ul class="static" style="display: none;"&gt;
            &lt;li&gt;
                &lt;a href="javascript:open();" class="static menu-item"&gt;
                    &lt;span class="additional-background"&gt;
                        &lt;span class="menu-item-text"&gt;Manage List&lt;/span&gt;
                    &lt;/span&gt;
                &lt;/a&gt;
                &lt;a href="#" class="static menu-item"&gt;
                    &lt;span class="additional-background"&gt;
                        &lt;span class="menu-item-text"&gt;Manage Documents&lt;/span&gt;
                    &lt;/span&gt;
                &lt;/a&gt;
            &lt;/li&gt;
        &lt;/ul&gt;
    &lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>*</p>
