Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Open a JQM popup with an image
$('<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