I need to show dynamic date picker ,my code is below
$(function() {
$('.datepicker').datepicker({
showAnim: "clip",
gotoCurrent: true,
dateFormat: "dd-mm-yy"
});
$('#mdcn_name').click(function(){
$('<tr class="field" id="row"><td><input type="text" id="expire_date" name="expire_date" class="datepicker" placeholder="dd-mm-yyyy"/></td></tr>').fadeIn('slow').appendTo('#dataTabl');
});
});
<table id="dataTabl">
<tr>
<th>Exp Date</th>
</tr>
</table>
When i click add row then i need to create/show datepicker dynamically.
Please help me
That is because your datepicker is not initailize for the dynamically appended div.
create a datepicker function