I have the following div and click listeners:
$('.right-col .modal-container').live('click',function(e) {
$(this).remove();
$('.right-col .modal-backdrop').remove();
});
<div class="modal-container">
....some other buttons and html elements inside
</div>
The issue is that when ever I click on a button inside this modal-container element, it would also trigger the click function at .modal-container. How do I avoid this cascading?