Archive for JavaScript

Unbind a click event, store it and re-add the event later with jQuery

My trusty junior developer Sean and I were quite frustrated trying to find a solution online for getting a click event from an element, removing it from the element, then re-adding the event with a condition. For example, anything with the css class “remove” should ask “are you sure” before completing the default action. Rather […]

Continue reading » No comments