title: Find element and add class (jQuery)
body: <pre><code>&lt;ul&gt;
     &lt;li&gt;&lt;a href="#"&gt;LEVEL 1&lt;/a&gt;
        &lt;ul&gt;
           &lt;li&gt;...&lt;/li&gt;
        &lt;/ul&gt;
     &lt;/li&gt;
     &lt;li&gt;&lt;a href="#"&gt;LEVEL 1&lt;/a&gt;
        &lt;ul&gt;
           &lt;li&gt;...&lt;/li&gt;
        &lt;/ul&gt;
     &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I have a nested list and I want to use jQuery to add class to the LI that containts <code>A&gt;LEVEL 1</code> based on this condition: <code>if a nested UL exists AFTER UL LI A, do x else y</code>.</p>
  
  <p>Thanks.</p>