First of all I DO realize that there are many similar questions like this one, but I just cannot understand the answer or the jsfiddle answer does not work!
My question is quick and simple, I have a div, which on click moves a second div to the right. But I want the div to be unclickable while the animation is performed. Here is my code:
$("#go").click(function() {
$("#go").off()
functionlist["flip"]()
$("#go").on()
})
But the div never becomes clickable. Am I just really misunderstanding the language? Thanks so much!
EDIT: I would like to avoid making the element unclickable while animated as I want to execute other functions as well when clicking on run
and still disable it during the process. I only used the animation as an example.