Pass a Node
as the images
property to Holder.run
and you'll be able to run Holder on any individual image. Holder itself doesn't create a DOM element, it just changes the src
value.
Code:
var image = $("<img>").attr({
"data-src": "holder.js/300x200"
})
Holder.run({
images: image[0]
});
image.appendTo("body");
Live example here: http://jsfiddle.net/imsky/p3DMa/