title: Get parent of a child element that has a certain class
body: <p>I have a nested menu like this:</p>
  
  <pre><code>&lt;ul id="menu"&gt;
      &lt;li&gt;Home
          &lt;ul&gt;
              &lt;li&gt;New&lt;/li&gt;
              &lt;li class="selected"&gt;Open&lt;/li&gt;
              &lt;li&gt;Folder&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;Another menu
          &lt;ul&gt;
              &lt;li&gt;submenu item 1&lt;/li&gt;
              &lt;li&gt;submenu item 2&lt;/li&gt;
              &lt;li&gt;submenu item 3&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>Now I'm trying to change the class of the first LI element (the one that contains Home), because it has a child element with a "selected" class. Is this possible using jQuery? </p>