Filter values ​​similar
<p>I want filter values ​​similar, i tried as following js code, but this code can not filter value <code>111</code> because this no <code>,</code>. my html code is as following (Some do, some do not this: <code>,</code>).</p>

<p>How can fix js code for filter all strings?</p>

<p><strong>DEMO:</strong> <a href="http://jsfiddle.net/bNuRE/" rel="nofollow">http://jsfiddle.net/bNuRE/</a></p>

<p><strong>HTML:</strong></p>

<pre><code>&lt;div class="oo"&gt;111&lt;/div&gt;
&lt;div class="oo"&gt;111, 222, 333&lt;/div&gt;
&lt;div class="oo"&gt;444, 111&lt;/div&gt;
&lt;div class="oo"&gt;222, 333&lt;/div&gt;
///////////////////////////////////////////////////////
&lt;div class="ww"&gt;111&lt;/div&gt;
&lt;div class="ww"&gt;777&lt;/div&gt;
&lt;div class="ww"&gt;333&lt;/div&gt;
&lt;div class="ww"&gt;666&lt;/div&gt;
</code></pre>

<p><strong>JS:</strong></p>

<pre><code>var valeache = $('.oo').text().split(', ');
$.each(valeache, function (a, val) {
    $('.ww').filter(function () {
        return $(this).text() == val
    }).remove();
});
</code></pre>
