 <p>Try This:-</p> <pre><code>$('body').on('focus', '.datepicker_input', function() { $(this).datepicker({ dateFormat: 'dd-MM-yy', defaultDate: $(this).val(), ... }); }); </code></pre> <p><a href="http://jsfiddle.net/47h3rvby/1/" rel="nofollow"><strong>Working DEMO</strong></a></p>