I'm trying to create a filter using radio buttons and jquery.
I have a list of items like the following:
<ul class="all-options">
<li class="1 a">
<img src="path/to/image"/>
<h3>Price</h3>
<h2>$1000</h2>
</li>
<li class="1 b">
<img src="path/to/image"/>
<h3>Price</h3>
<h2>$1500</h2>
</li>
<li class="2 a">
<img src="path/to/image"/>
<h3>Price</h3>
<h2>$1200</h2>
</li>
<li class="2 b">
<img src="path/to/image"/>
<h3>Price</h3>
<h2>$1300</h2>
</li>
</ul>
I want to view just ONE item at a time, based on the user's selection from the following radio buttons:
<label>Numbers</label><br/>
<input type="radio" name="number" value="1">1<br/>
<input type="radio" name="number" value="2">2<br/>
<label>Letters</label><br/>
<input type="radio" name="letter" value="a">a<br/>
<input type="radio" name="letter" value="b">b
So, in order for one item to be shown, I know that BOTH classes would have to match the selection of the radio buttons. I'm very new to jquery though, so I'm hoping someone can point me in the right direction.