I change src of this image on .click event.
.click
There can be loaded more than 20 d
You need to attach an event handler for the load event:
load event
Update 2017:
$('img').on('load', function() { alert('new image loaded: ' + this.src); });
Plain JS/DOM:
imgNode.onload = () => { alert('new image loaded: ' + this.src); };