Hide all divs of a class, show only those with additional class
<p>I've got a list of DIVS (products on a storepage) width the class "chairdiv".
I'd like to be able to filter the DIVS that have an additional class, here's an example:</p>

<pre><code>&lt;div class="chairdiv sold"&gt;&lt;/div&gt;
&lt;div class="chairdiv forsale"&gt;&lt;/div&gt;
&lt;div class="chairdiv forsale"&gt;&lt;/div&gt;
&lt;div class="chairdiv forsale"&gt;&lt;/div&gt;
&lt;div class="chairdiv sold"&gt;&lt;/div&gt;
&lt;div class="chairdiv forsale"&gt;&lt;/div&gt;
</code></pre>

<p>By default the page would show all these divs, can I use javascript to hide all "chairdiv" divs except those with "sold" or "forsale" as an additional class?</p>

<p>I'm HTML/CSS proficient but I know very little javascript.</p>

<p>Thanks!</p>
