title: Wrap List elements by class name
body: <p><em>I have asked related answer, but not same like this</em> question: <a href="https://stackoverflow.com/q/31760566/4290783">How to make new Div inside list items</a>
  <br>
  My question is how to break list items and add new Class find from list items, example below? </p>
  
  <p><strong>Main HTML:</strong> <a href="http://jsfiddle.net/4eo2fa06/4/" rel="nofollow noreferrer">Fiddle</a></p>
  
  <pre><code>&lt;div class="widget-content"&gt;
  &lt;ul&gt;
  &lt;li&gt;&lt;a class="label1" href="/lorem"&gt;lorem&lt;/a&gt; Test Content&lt;/li&gt;
  &lt;li&gt;&lt;a class="label1" href="/lorem"&gt;lorem&lt;/a&gt; Test Content&lt;/li&gt;
  &lt;li&gt;&lt;a class="label1" href="/lorem"&gt;lorem&lt;/a&gt; Test Content&lt;/li&gt;
  
  &lt;li&gt;&lt;a class="label2" href="/lorem"&gt;lorem&lt;/a&gt; Test Content&lt;/li&gt;
  &lt;li&gt;&lt;a class="label2" href="/lorem"&gt;lorem&lt;/a&gt; Test Content&lt;/li&gt;
  &lt;li&gt;&lt;a class="label2" href="/lorem"&gt;lorem&lt;/a&gt; Test Content&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><em>I want to break list items by class like this:</em> </p>
  
  <pre><code>&lt;div class="widget-content"&gt;
  
  &lt;ul class="label1"&gt; &lt;!--add class find from list--&gt;
  &lt;li&gt;&lt;a class="label1" href="/lorem"&gt;lorem&lt;/a&gt; Test Content&lt;/li&gt;
  &lt;li&gt;&lt;a class="label1" href="/lorem"&gt;lorem&lt;/a&gt; Test Content&lt;/li&gt;
  &lt;li&gt;&lt;a class="label1" href="/lorem"&gt;lorem&lt;/a&gt; Test Content&lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;ul class="label2"&gt; &lt;!--add class find from list--&gt;
  &lt;li&gt;&lt;a class="label2" href="/lorem"&gt;lorem&lt;/a&gt; Test Content&lt;/li&gt;
  &lt;li&gt;&lt;a class="label2" href="/lorem"&gt;lorem&lt;/a&gt; Test Content&lt;/li&gt;
  &lt;li&gt;&lt;a class="label2" href="/lorem"&gt;lorem&lt;/a&gt; Test Content&lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>I mean break list items by class and add class to parent <code>ul</code> find from list items example given above. How to do this simply by Jquery/JS ? 
  <br>
  Thanks in advance.</p>