JSFiddle - React, Tailwind, and code Playground

by Pavel Savushchyk

HTML

<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/vader/jquery-ui.css">
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/jquery-ui.js"></script>
<div id="inlineD1"></div>
<input id="openD1"/>

JavaScript

$("#inlineD1").datepicker({
    inline: true
});
$("#openD1").datepicker();

 var head = document.getElementsByTagName('head')[0];
   var script= document.createElement('script');
   script.type= 'text/javascript';
   script.src= '//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.js';
   head.appendChild(script);
script.addEventListener("load", function(){
    alert(1)
});