I have this menu
<ul id="menu" class="clearfix">
<li>
<a href="">Product 1</a>
</li>
<li>
<a href="">Product 2</a>
</li>
<li>
<a href="">Product 3</a>
</li>
<li class="last">
<a href="">Product 4</a>
</li>
</ul>
I want to make this effect. when you enter the page the text color of the menu items are white. If you click on one item it becomes active (keeping the white color text) and all the other items change it's color to gray, also when you hover over one the affected items are all the others.
I have tried with the .addClass but I have only managed to add the active class to the current item, but not change the others that aren´t active after the first click.
Anyone know the best jquery approach to this?