javascript - Make slideToggle effect only one element at a time -
here's i've got far:
http://jsfiddle.net/jackieschreiber/4xqjm/3/
$('.expand').on('hover', function(e) { e.preventdefault(); $price = $('.price-box'); $pricefull = $price.find('.full'); $pricemini = $price.find('.small'); $pricefull.slidetoggle('slow'); $(this).unbind('mouseenter'); });
my question is, if i've got multiple elements of class, how apply effect 1 being hovered over?
changed selectors little bit , added stoppropagation() animations wouldn't que.
$('.price-box').on('hover', function(e) { $(this).find('.full').slidetoggle('slow'); e.stoppropagation(); });
Comments
Post a Comment