You can try this:For themes visit here: http://jqueryui.com/themeroller/
use numberOfMonths
like numberOfMonths: 2
to show two months together.
jQuery(document).ready(function() {
var eventDates = {};
eventDates[ new Date( '11/26/2015' )] = new Date( '11/26/2015' );
eventDates[ new Date( '11/04/2015' )] = new Date( '11/04/2015' );
eventDates[ new Date( '12/17/2015' )] = new Date( '12/17/2015' );
// datepicker
jQuery('#dates').datepicker({
beforeShowDay: function( date ) {
var highlight = eventDates[date];
if( highlight ) {
return [false, "event", highlight];
} else {
return [true, '', ''];
}
},
numberOfMonths: 2
});
});
<link href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
<html>
<head>
<style>
.event span {
background-color: #ff69b4 !important;
background-image :none !important;
color: #ff69b4 !important;
pointer-events: none;
cursor: default;
}
</style>
</head>
<body>
<table><tr>
<td><div style="height:20px !important;width:20px !important;background-color: #73AD21;border:solid gray 1px;"></div></td><td>available</td><td><div style="height:20px;width:20px;background-color: #FFC0CB;border:solid gray 1px;"></div></td><td>sold out</td></tr>
<tr><td colspan="4"><input type="text" id="dates"></td></tr>
</table>
</body>
</html>