jquery toggle, prevent clicking during toggle
Posted
by Stacey
on Stack Overflow
See other posts from Stack Overflow
or by Stacey
Published on 2010-04-01T17:51:59Z
Indexed on
2010/04/01
17:53 UTC
Read the original article
Hit count: 416
jQuery
Given the following jquery code..
$('#toggle').toggle(function() {
// perform something
}, function() {
// perform something else
});
Is there any way to prevent the toggle from being fired again if someone clicks while it is performing the function?
I referenced http://stackoverflow.com/questions/2489518/tell-jquery-to-ignore-clicks-during-an-animation-sequence and the technique did not work.
© Stack Overflow or respective owner