JQuery slideToggle function cuts div down and then backs up immediately

I have a very simple slide switch function as shown below.

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

It works, but it collapses the divLinkListList and then backs up immediately. Similar to peeka boo effect. this happens wherever the slideToggle function is used.

Any help would be appreciated.

+6
source share
1 answer

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

In my example, there is a button that calls a method for a div. How do you want to run this method?

+1
source

Source: https://habr.com/ru/post/902132/


All Articles