I want to fire a function on load of my iframes, the problem being that some are generated dynamically, which dont fire the .load() event, I've tried:
$('.upload-target').on('load',uploadDone)
function uploadDone(){
alert('ewfweewf');
}
but no luck.. how can I trigger a function on load of a dynamically generated iframe?