Hi all,
As topic says, I want to remove the visability while i hover a list on every <li>
element except the one I hover.
This should be pretty simple i believe but I can't figure it out.
Here is my markup:
<ul>
<li class="item1"><a href="#">ITEM 1</a></li>
<li class="item2"><a href="#">ITEM 2</a></li>
<li class="item3"><a href="#">ITEM 3</a><li>
<li class="item4"><a href="#">ITEM 4</a></li>
</ul>
and here are the jQuery (that doesn't work):
$(document).ready(function(){
$("li").hover(function(){
$("li a").not(this).css("visibility", "hidden");
});
});
Something is wrong...
Thanks!