Show elements depending on html value of a tag
- by mike23
I would like to accomplish the following with jquery :
When I click on this link
<a href="#">Cars</a>
I would like all divs like those
<div class="product">
<div class="category">Cars</div>
</div>
to do something.
You get the idea, I have a menu with a list of categories, and a list of products, each containing a div with the category name, and I would like to make them hide/show.