I wonder if it’s somehow possible to use the stop() function (I normally use on animate()) with hide() or show().
if I quickly hover repeatedly over a div which uses show() to display some subdivs the show-animation repeats over and over again. The stop() function would stop that behaviour.
However I’ve no clue how I can use the stop() function with hide() or show().
Is that even possible?
Thank you
Regards Matt
You have to set a duration for your show / hide effect:
After that you are able to use
.stop()and.stop(true,true)Another approach would be to add an delay like
http://api.jquery.com/delay/