You are dealing with two different things. jQuery live is for event binding, and datepicker not datepicker attached to the event, but simply adds functionality to the element at a time.
The only reason live works with events is because jQuery actually binds the event handler to the predecessor element and (thanks to the way the events bubble in javascript) the ancestor actually accepts the event and delegates it as if it were coming from the item. The principle is quite complex, but long and short, it can only work with events.
If you want to add the datepicker function, just call the datepicker function of the new element after it is created.
Chris pratt
source share