I\'d like to trigger an event when an element is created.
$(document).on(\'load\',\'#TB_title\',function() { console.log(\'loaded\'); });
I
You can trigger a global custom event:
$(document).on('load','#TB_title',function() { $.event.trigger('nameOfCustomEvent'); }); $('#element').bind('nameOfCustomEvent', function(){ console.log(this); });