I have a container that exists in my DOM .customers-container. Within that container, I am adding new "tr"s through ajax calls.
How can I apply event binding to those dynamically created elements. I am using below, but it's not working on the new elements:
$('.customers-container').find('.glyphicon-remove').on('click', function(){
$(this).closest('tr').hide();
});