I have the following function which checks the ID on my image tag, detecting if the image itself is loaded onto the page. It works the first time when the page initially loads...
jQuery(function($) {
$('#imgLargeImageImage').bind('load', function() {
console.log('new image loaded: ' + this.src);
});
});
But how do I keep writing console.log for every time the image src attribute changes?
The image attribute changes dynamically when another java-script event is fired.
Thanks