I have a div with an unordered list inside that slides left when you click an LI item.
<div id="products">
<ul>
<li><a href="">Product 1</a></li>
<li><a href="">Product 2</a></li>
<li><a href="">Product 3</a></li>
</ul>
The problem is when you click a list item, the div slides left and as it slides under the mosue cursor, it triggers the rollover animations on all of the list items as they roll by.
Is there a way to disable javascript on items onclick?
I tried this:
$("#products li a").click(function(event){
event.preventDefault();
});
}
But that doesn't seem to work as the animations still continue on the other list items on hover?