I want to load external images on my page asynchronously using jQuery and I have tried the following:
$.ajax({ url: \"http://somedomain.
If you just want to set the source of the image you can use this.
$("img").attr('src','http://somedomain.com/image.jpg');