I am super novice and need a quick advice. I need the close popup clicking by outside of modal.
Here is the codes. any tips about this?
$('.login-btn').on('click', function () {
$('.signin-parent').show();
});
$('.signin-btn').on('click', function () {
console.log('erhan')
$('.signin-parent').show();
$('.signup-parent').hide();
});
$('.signup-btn').on('click', function () {
$('.signin-parent').hide();
$('.signup-parent').show();
});
$('.exit').on('click', function () {
$('.signin-parent').hide();
$('.signup-parent').hide();
})
It works finely but I click outside of popup it not close, anyone can help me? thanks