Skip to content

Instantly share code, notes, and snippets.

@maxmoore14
Created November 7, 2014 23:03
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