jQuery
jQuery - the JavaScript library helping developers everywhere.
jQuery On and Off Namespacing
Being able to apply and remove events with `on()` and `off()` is great, but sometimes there is a requirement to either trigger or remove a subset of events that have been added to an element. Here's how!
Using jQuery .on() and .off()
With the release of jQuery 1.7 on November 3rd came two new ways to attach event handlers - `.on()` and `.off()`. Whilst possibly not the most exciting new additions to jQuery's large utility belt, these two additions do unify all types of (good) event handling in jQuery and will help you write tidier and more efficient code in the future.