1internet Posted May 6, 2013 Share Posted May 6, 2013 So I am sure it is a common issue, but right now I am having trouble with a slideToggle effect. When I hover over the element, the hidden element slides down, but if I hover over the elemenet several times, and dont move my cursor, the hidden element will slide down, up, down, up, etc several times also. Am I supposed to use stop() function here or something? How can I disable all effects in a queue for this element, and only make the latest one happen. Link to comment https://forums.phpfreaks.com/topic/277723-queued-jquery-effects-only-want-the-latest/ Share on other sites More sharing options...
codefossa Posted May 6, 2013 Share Posted May 6, 2013 If it's doing the same thing over and over, just use an interval, and clear it when you unhover. Link to comment https://forums.phpfreaks.com/topic/277723-queued-jquery-effects-only-want-the-latest/#findComment-1428710 Share on other sites More sharing options...
haku Posted May 7, 2013 Share Posted May 7, 2013 Or use: .stop(true, true) Link to comment https://forums.phpfreaks.com/topic/277723-queued-jquery-effects-only-want-the-latest/#findComment-1428775 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.