You must first bind to an already existing element and then bind to the dynamically created element from there.
You can bind to the document or to a parent element.
$(".already-exists").on("click", ".dynamically-created", function() {
// Put code here
});
// or
$(document).on("click", ".dynamically-created", function() {
// Put code here
});