tags:

views:

206

answers:

2

I know that I can use $('#myId').load('aPage.html'); to load a page into an element, how do I do use that to alter an image?

+6  A: 

$("selectorforyourimage").attr("src","newimagelocation");

matdumsa
Thanks, that's been a great help :)
Teifion
+1  A: 

Note, that the image will load no sooner, than you load it, so you may want to preload it.

For this, you can use this plugin or this mini-plugin

pihentagy
Those plugins appear interesting.
ayaz