below is my code.
$(".datepicker").datepicker({ format: 'dd/mm/yyyy', autoclose: true, todayBtn: 'linked' })
========================================
else if (currColumn == "CPDate") {
tr = tr + '<td><span> <input id="' + currColumn + '" type="text" class="datepicker"/></span></td>';
}