title: Add class to parents that have children using jquery
body: <p>How would I go about adding a class only to the <code>li</code> parent that has children?</p>
  
  <pre><code>&lt;ul&gt;
      &lt;li&gt;&lt;a href="#"&gt;parent&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;parent&lt;/a&gt;
      &lt;ul&gt;
          &lt;li&gt;child&lt;/li&gt;
          &lt;li&gt;child&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/ul&gt;
  </code></pre>