/jquery-create-event

Fire a custom "create" event when new, matching elements are inserted into the DOM.

Primary LanguageJavaScript

jQuery "create" event

This event wraps $.fn.domManip and $.fn.html to fire a custom "create" event when new, matching elements are inserted into the DOM.

Use it like:

// bind a handler that will fire when new "div.foo" 
// elements are inserted into the DOM
$("div.foo").live("create", function(e){
	$(this).doSomething();
});