I have a container that has some images inside, I want to listen to the event of every image finish loaded.
eg)
<
Using jQuery:
$('#container img').load(function() { alert('image loaded'); });
Using simple javascript you can use the onload attribute:
onload
The function will be:
function loadImage() { alert("image loaded"); }