You could leave these event listeners here and always ready, or alternatively you could choose to only bind them events when the modal gets created (Just be sure to remember to unbind them again when the modal gets closed). The later option is slightly more efficient, but I'll leave this up to you!