No jQuery, just JavaScript. I'm using prototype.js but can't find in documentation how can I do that.
I have the img element, and some event that change attr src, so my code is:
document.getElementById('image').addEventListener('change', myFunction(), false);
but this solution doesn't work with img element!