I have an image 'view more' that when I click on more data is appended, what I want to do is change image before data is appended, I've tried multiple solution found on internet but nothig seems to work. Here is my code
<script language="Javascript">
function openFromButton(lastLoadedIndex) {
lastLoadedIndex = (typeof(lastLoadedIndex)=='undefined') ? '' : lastLoadedIndex;
jQuery.get('liste_ti.asp?from_item='+ lastLoadedIndex +'¶m='+(new Date()).getTime(), function(data) {
//alert(data);
jQuery("#liste").append(data);
});
}
</script>
and my image
<div class="lazyLoading"><a href="#"> <img src="images/view_more_arrow.png" border="0" height="6" width="11"></a> <a href="javascript:openFromButton()">view more</a></div></td>
lastLoadedIndex?