Html DateTimeInput

Invoke the destroy method of the jqxDateTimeInput. 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">
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<div>
    <input style="margin-left: 10px;" type="button" id='jqxButton' value="Destroy me" />
</div>
<div style="margin: 10px;" id='jqxDateTimeInput'></div>

JavaScript

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