How can I detect when a new element has been added to the document in jquery ?
Explanation: I want to know when an element with class \"column-header\" has been adde
$(document).bind('DOMNodeInserted', function(e) { console.log(e.target, ' was inserted'); });
DOMNodeInserted is a DOM level 3 Event. That in turn means, you need a fairly new browser to support that kind of event.
DOMNodeInserted
Reference: MDC