I know when you create an element dynamically, you have to use something like:
$("#id").live("click", function() {
//something
});
Right now I have this:
$('#tdInput1').datepicker({
inline: true
});
My question is: how do I make this live so it can interact with dynamically created elements.
According to: Jquery .live works but not with .datepicker
This should work:
edit: This answer is for older versions of jQuery. For jQuery 1.9+ please try Vishal’s answer.