Created
November 7, 2014 23:03
-
-
Save maxmoore14/23b6721b41c58c10737e to your computer and use it in GitHub Desktop.
Open a JQM popup with an image
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
$('<img>').appendTo(myPopupElement) | |
.on('load', function () { | |
// open the popup here | |
}) | |
.attr('src', myImageSource) | |
.attr('alt', 'my alt text'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment