Check out a free preview of the full Learning jQuery course:
The "Event Binding (and Unbinding)" Lesson is part of the full, Learning jQuery course featured in this preview video. Here's what you'd learn in this lesson:

Low-level method bind for listening to native browser events or custom events Audience asks, “Is there an advantage to using bind vs. native DOM onclick handlers?” Advantage is bind allows you to bind multiple event handlers to the same element. Karl hints at an even better way to bind lots of events Method context (the this keyword) and how wrapping this in a jQuery function, you can use jQuery methods on that element. Karl explains the difference between using jQuery’s addClass vs. native el.className. Audience asks, “Why jQuery doesn’t automatically wrap the element in $()?”

Get Unlimited Access Now