Preferred way of modifying elements that have yet to be created (besides events)
问题 There are a lot of questions about binding future manipulations to non-existent elements that all end up answered with live/delegate . I am wondering how to run an arbitrary callback (to add a class or trigger a plugin, for example) to all existing elements that match a selector and all future elements that match that same selector that are yet to be created. It seems that the main functionality of the livequery plugin made it into the core but the other part, attaching arbitrary callbacks