Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery slideToggle function slids a div down then immediately back up

I have a very simple slide toggle function as below.

$(".quickLinksLink").click(function () {
    $(".quickLInksList").slideToggle(100);  
});

It works but it slides the quickLInksList div down and then immediately back up. Sort of like peeka boo effect. this happen everywhere where a slideToggle function is used.

Any help will be appreciated.

like image 737
n00b3 Avatar asked Nov 22 '11 17:11

n00b3


1 Answers

Here is a fiddle with the slideToggle method implemented: http://jsfiddle.net/IrvinDominin/R2Q86/

In my example there is a button that calls the method for a div. How do you want to fire the method?

like image 99
Irvin Dominin Avatar answered Nov 15 '22 00:11

Irvin Dominin