Skip to content
Fire a custom "create" event when new, matching elements are inserted into the DOM.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
tests
README.markdown
example.htm
jquery.create.js

README.markdown

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();
});
Something went wrong with that request. Please try again.