jQuery internally handles events via the addEventListener function. This means it is perfectly legal to have more than one function bound to the same event for the same DOM element.
Attach and Detach Event Handlers
This modified text is an extract of the original Stack Overflow Documentation created by following contributors
and released under CC BY-SA 3.0