Add datepicker on dynamic elements

Add datepicker on dynamic elements

Hi All,
Currently, I am using class called calendar to add the datepicker.
$('.calendar').datepicker({
   changeMonth:true,
   changeYear:true,
   dateFormat:'dd/mm/yy'
});

But I have some elements which I add dynamically and the element ID is totally dynamic. I have also added the class called calendar on those dynamic elements. But, jQuery couldn't parse the dynamic elements at the first. So, How can add the datepicker feature to dynamically added elements.
Hope to get your help soon..
Thanks