Load Event issue for dynamically added elements
I am trying to support load event for dynamically added elements to the DOM. so couple of years ago we used to use
$(".myclass").livequery(function(){ }); and it used to work perfectly.
Now
$(".myclass").on("load",function(){}); // doesn't work
apparently load event is not supported for .on() and .off().
what is the work around this issue, so simply add elements to the DOM, or even when the element is constructed for example ( $("<div class='myclass' />") ) an event gets fired and we catch it.
is there a simple way to capture the LOAD event.
I have also found this article but it is slow, and it has overwritten quite a bit of jQuery's Core code.
Thanks
Mahdi