JQuery loop through DIV's to hide /show
<p>I have a combo box with choice 0 - 8 and 8 sets of input fields where each set of input fields are wrapped around a div with the same class.</p>

<p>I need to find out how to use Jquery to hide/unhide the divs based on the selected combobox value.
For example, if I select 2, then class="member1" and class="member2" needs to be visible, the rest are invisible. If i change my mind , and select 1, then class="member1" stay visible but member2 and the rest are set to invisible?</p>

<pre><code>&lt;div class="member1"&gt; 
&lt;input id="name1"&gt;
&lt;input id="age1"&gt;
&lt;/div&gt;
&lt;div class="member2"&gt; 
&lt;input id="name2"&gt;
&lt;input id="age2"&gt;
&lt;/div&gt;
:
:
&lt;div class="member8"&gt; 
&lt;input id="name8"&gt;
&lt;input id="age8"&gt;
&lt;/div&gt;
</code></pre>
