With livequery I can do the following:
$(".focusable").livequery(function() {
$(this).focus();
});
I know that jQuery supports custom functions for delegates and the like but I’m not seeing anything that makes me think that jQuery can do what livequery is doing in this example.
$("body").on("???", ".focusable", function() {
$(this).focus();
});
I hope that makes sense.
You can use the
DOMNodeInsertedevent:This is not supported by IE8 and older: https://developer.mozilla.org/en/DOM/DOM_event_reference