Personal I have an img tag that has a button that loads several images for the person to choose, so he chooses the src of this tag is changed. I need to detect when this src change occurs and display an alert. I tried with the onchange but it did not fire, with the load it worked out but it also fired at loading the page because as soon as the pagian loads there a standard image appears.
$(".imagem").on("change", function(e){alert("alterou")});