JSFiddle - React, Tailwind, and code Playground
by phazorrise
HTML
<input type="text" class="datepicker"/>
<div id="rows_container">
</div>
<button id="add">Add another link</button>
JavaScript
var $newRow = $('<input type="text" class="datepicker"/><br/>');
$('#add').live("click", function() {
$newRow.clone().appendTo('#rows_container').datepicker();
});
$('.datepicker').each(function() {
$(this).removeClass('hasDatepicker').datepicker();
});