Created
March 16, 2019 20:05
-
-
Save sudipto-me/57e2a081ebeb3844c0ea54fe9a8461de to your computer and use it in GitHub Desktop.
Pop up Close
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('body').on('click', '#myModal', function (e) { | |
if ($(e.target).attr('class') == 'practice_modal active') { | |
console.log('Class found'); | |
$('#myModal').toggleClass('active'); | |
} else { | |
console.log('Class not found'); | |
} | |
console.log($(e.target).attr('class')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment