JSFiddle - React, Tailwind, and code Playground

by cjdp

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css">
<div id="content"></div>
<button id="cmd">add a datepicker</button>

JavaScript

$('#cmd').click(function(){
    var new_datepicker = $('<input type="text">').datepicker();
    $('#content').append('<br>a datepicker ').append(new_datepicker);
});