Binding and Unbinding Event Examples

jQuery makes it simple to start and stop listening to events using the on() and off() functions. You just need to supply the name of the event you want to listen to and a function to handle it.

Mouse over this div to see the effect. Click on it to unbind the mouseover event.

Type in this field

Last character typed: