jQuery filter class that contains certain value
<p>in jQuery, how do i filter all contents that contain certain class?</p>

<p>HTML:</p>

<pre><code>&lt;div class='item 10'&gt;10&lt;/div&gt;
&lt;div class='item 20'&gt;20&lt;/div&gt;
&lt;div class='item 30'&gt;30&lt;/div&gt;
&lt;div class='item 40'&gt;40&lt;/div&gt;
&lt;div class='not-an-item 50'&gt;50&lt;/div&gt;
</code></pre>

<p>what i've tried:</p>

<pre><code>var classList = $(".item").attr('class').split(/\s+/);
if(classList[1] == '10' || lassList[1] == '30'){
    $(".item").hide();

}
</code></pre>

<p>correct output: </p>

<pre><code>&lt;div class='item 20'&gt;20&lt;/div&gt;
&lt;div class='item 40'&gt;40&lt;/div&gt;
&lt;div class='not-an-item 50'&gt;50&lt;/div&gt;
</code></pre>
