JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://view.jqueryui.com/master/ui/jquery.ui.core.js"></script>
<script src="http://view.jqueryui.com/master/ui/jquery.ui.datepicker.js"></script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/themes/redmond/jquery-ui.css">
<div id="dp"></div>
<input type="text" id="disp" />

<p>Click on the right arrow until you reach 2013 (even though it displays 2011 again), then click on a day. In the text field it now shows 2013.</p>

JavaScript

$('#dp').datepicker({
    changeYear: true,
    changeMonth: true,
    yearRange: '-0:+1',
    altField: '#disp'
});