JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.0/themes/base/jquery-ui.css">
<a href="#" class="show">click to show</a>
<a href="#" class="set">Jan 9</a>
<br>
<div class="insert"></div>
CSS
a {
display: block;
}
JavaScript
$('a.show').click(function() {
$(".insert").datepicker();
});
$('a.set').click(function() {
$(".insert").datepicker('setDate','01/18/2013');
});