You need to stop the event from propagating up the DOM tree:
$('.closeBtn').click(function (evt) {
evt.stopPropagation();
// Your code here
});
You need to stop the event from propagating up the DOM tree:
$('.closeBtn').click(function (evt) {
evt.stopPropagation();
// Your code here
});