JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/themes/black-tie/jquery-ui.css">
<input id="datepicker" />

JavaScript

// save original function to call in our new one
var _gotoToday = $.datepicker._gotoToday;

// make a new _gotoToday function that does what the old one
// did, but adds some extra feature
$.datepicker._gotoToday = function(id) {
     _gotoToday.call( this, id ); 
     var target = $(id), 
         inst = this._getInst(target[0]);
    
    //Added by Ryan Waterer on 1/30/2009 to have it return 
    // the value when the person selects the "Today" button
     this._selectDate(id, this._formatDate(inst,
         inst.selectedDay, inst.drawMonth, inst.drawYear));
}

    
// make the datepicker    
$( "#datepicker" ).datepicker({ 
    showButtonPanel: true 
});