JSFiddle - React, Tailwind, and code Playground

by nosfan1019

HTML

<a href="#" class="show">click to show</a>
<a href="#" class="set">Jan 9</a>
<br>
<div class="insert"></div>
<div class="html">
    <div id="datepicker"></div>
</div>

CSS

a {
    display: block;
}

JavaScript

$( "#datepicker" ).datepicker();

$('a.show').click(function() {
    $html = $('.html').html(); 
    $('.insert').html($html);            
});

$('a.set').click(function() {
    $('#datepicker').datepicker('setDate','01/09/13');       
});

$(document).ready(function() {
    $('.html').hide();
});