.hover problem with hoverout
Hi,
the hoverout does not work because of the index. I need a unique class on every item so the index works fine with addClass, but removeClass does not remove the class. I don't know why.
- $(function() {
- var $items = $('#myItem');
- $items.hover(function(){
- var index = $items.index($(this));
- $(this).addClass('hov'+ index);},function(){$(this).removeClass('hov' + index);});
- });
Is there any other solution?
jbobbele