JSFiddle - React, Tailwind, and code Playground
by Akram kamal
HTML
<div id="div-custom"></div>
JavaScript
result = '<p class="fieldLabel">Select Date:</p><input name="field_1" id="field_1" type="text" class="inputTextDatePicker" placeholder="" value="" maxlength="10" /><br />'
jQuery('#div-custom').html(result).show();
jQuery("#div-custom").find(".inputTextDatePicker").datepicker({
numberOfMonths: 2,
dateFormat: "yy-mm-dd",
changeMonth: true,
changeYear: true,
showButtonPanel: true
});