jquery toggle, prevent clicking during toggle
- by Stacey
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.