Html Calendar

Invoke the destroy 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>
<div>
    <input style="margin-top: 20px" type="button" id='jqxButton' value="Destroy " />
</div>

JavaScript

$("#jqxCalendar").jqxCalendar({
    width: 200,
    height: 200,
    theme: 'energyblue'
});
$("#jqxButton").jqxButton({
    height: '30px',
    width: '120px',
    theme: 'energyblue'
});
$('#jqxButton').on('click', function () {
    $('#jqxCalendar').jqxCalendar('destroy');
});