Hi everyone
in my main html file, I have this div that some img are define in it:
< div id="preload">
< img src="http://howindia.com/......jpg" width="1" height="1" />
< /div>
and in my .js file I said:
$("#preload").load(function(){
alert("something...");
//call other functions
});
but simply loading all images into the < div id=”preload”> won’t trigger any event and
The image load event does not propagate to the div. Try adding a load handler to the image(s) instead.
Example fiddle