JSFiddle - React, Tailwind, and code Playground

by konijn_gmail_com

HTML

<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap-responsive.css">
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css">
    <div id="bw_calendar"></div>
    <span class="label label-success nytcounter">1</span>

JavaScript

$( "#bw_calendar" ).datepicker( { numberOfMonths: 1, showButtonPanel: true, minDate: 1, maxDate: "+12M" } );

//Store the old functionality
var _updateDatepicker_old = $.datepicker._updateDatepicker;

getDate


//Replaces the function.
$.datepicker._updateDatepicker = function(inst){ 
    //First we call the original function from the appropiate context.
    _updateDatepicker_old.apply(this, [inst]); 
    //No we can update the Tipsys.
    onSelectPlacePills( inst.id );
}