Skip to content

Instantly share code, notes, and snippets.

@jacoborus
Created April 11, 2012 03:11
Show Gist options
  • Save jacoborus/2356615 to your computer and use it in GitHub Desktop.
Save jacoborus/2356615 to your computer and use it in GitHub Desktop.
Cargar imagen con jQuery
var img = $('<img/>').load(function() {
// Loading done ..
img.appendTo("#imagePopup .content");
}).error(function(){
// Unable to load image ..
$("#imagePopup .content").html('Image failed to load.');
}).attr('src', imageSource);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment