Show elements depending on html value of a tag

Posted by mike23 on Stack Overflow See other posts from Stack Overflow or by mike23
Published on 2010-05-07T16:54:20Z Indexed on 2010/05/07 16:58 UTC
Read the original article Hit count: 136

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript