jQuery Calendar

Invoke the setRange method of the jqxCalendar. Author: http://jqwidgets.com

by jqwidgets

HTML

<script src="https://jqwidgets.com/jquery-widgets-demo/jqwidgets/globalization/globalize.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<div id='jqxCalendar'></div>

JavaScript

$("#jqxCalendar").jqxCalendar({
    width: '250px',
    theme: 'energyblue',
    selectionMode: 'range',
    height: '250px'
});
var date1 = new Date();
date1.setFullYear(2012, 7, 7);

var date2 = new Date();
date2.setFullYear(2012, 7, 15);
$("#jqxCalendar").jqxCalendar('setRange', date1, date2);