disable click event handler for a duration of time
问题 I've already looked at similar questions but the answers provided involve buttons and not div elements. When I click the div element with id click , the click event handler is disabled by unbind() and sets a timer for 2 seconds. After 2 seconds, the click event handler should be enabled again by bind() . The problem is that the click event handler doesn't seem to get "rebound". I am appending text to another div element to check if the click event handler is active. Here is my jsfiddle: