Question

Hi Friends seeking your help I am trying to develop simple slideUp() and sldeDown() which work when user click on perticular button who has class .buyBtn actuly I am opening a panel by clicking on this class. Now the problem is when I click on this button my panel slide down for 2 seconds as per my code but when i click on that button 5 to 6 times more the panel open ans close very fast without wait for 2 minuates its close i dont know what is the problem behing this you can see my code here http://jsfiddle.net/uVdb3/

Please help me guys feel free to comment .. Thank in advance .. :)

Was it helpful?

Solution

Try this, use stop()

    $('.oneItem').stop().animate({

DEMO

I'd suggest using setTimeout instead of setInterval on $('.chart').children().slideUp

DEMO

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top