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.

http://jsfiddle.net/4xqjm/4/

$('.price-box').on('hover', function(e) {     $(this).find('.full').slidetoggle('slow');     e.stoppropagation(); }); 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -