JSFiddle - React, Tailwind, and code Playground
by Karan1412
HTML
<input type="text" id="DOB" />
<p>Click the icon next to the input field to show the datepicker</p>
JavaScript
$(document).ready(function () {
$("#DOB").datepicker({
showOn: "button",
buttonText : "DatePicker",
buttonImage: "https://lh6.googleusercontent.com/-4mIOpMQ8TMo/UYTIwScsDPI/AAAAAAAABbE/7osEswE2ALQ/h120/calendar.gif",
buttonImageOnly: true
});
});