This is done by event delegation. Event will get bind on wrapper-class element but will be delegated to selector-class element. This is how it works.
$('.wrapper-class').on("click", '.selector-class', function() {
// Your code here
});
And HTML
<div class="wrapper-class">
<button class="selector-class">
Click Me!
</button>
</div>
#Note:
wrapper-class element can be anything ex. document, body or your wrapper. Wrapper should already exist. However, selector
doesn't necessarily needs to be presented at page loading time. It may come later and the event will bind on selector
without fail.