Simple jquery slider freezes on browser previous -


i've done simple jquery slider

$(document).ready(function(){     $('li').hover(function(){         $(this).children('div').slidetoggle();     }); }); 

like this. works perfectly, div's hidden , display when hover li item, there's problem. when press "back" button in browser slidetoggle "freezes" in "opened" position (meaning div displayed) , start working backwards. ideas fix?

try sliding them document ready, so:

$(document).ready(function(){     $('li > div').slideup();     $('li').hover(function(){         $(this).children('div').slidetoggle();     }); }); 

this assure divs slide upwards , prevent working 'backwards'.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -