Created
November 23, 2015 15:07
-
-
Save franhaselden/9c8fe4623c8eea978166 to your computer and use it in GitHub Desktop.
On Click - click event on an item that has been created after the DOM has loaded
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', '.overlay-box .button', function(){ | |
console.log( $( this ).text() ); | |
closeOverlay(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment