I have the code below and what I need to do is load the image from the href into a div via ajax… Any help appreciated. I believe that load() can’t load images like this?
<ul id="list">
<li class="list-item-1"><a href="images/image1.jpg">Image 1</a></li>
<li class="list-item-2"><a href="images/image2.jpg">Image 2</a></li>
<li class="list-item-3"><a href="images/image3.jpg">Image 3</a></li>
<li class="list-item-4"><a href="images/image4.jpg">Image 4</a></li>
</ul>
<div id="image-holder"></div>
Many thanks,
C
You have to also remove the currently appended image. Here it is with a click event and Image instead of appending markup.