Html DateTimeInput
Invoke the getText 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 style="margin: 10px;" id='jqxDateTimeInput'></div>
<div>
<input style="margin-top: 10px;" type="button" id='jqxButton' value="Get the text" />
</div>
JavaScript
$("#jqxDateTimeInput").jqxDateTimeInput({
width: '250px',
height: '25px',
theme: 'energyblue'
});
$("#jqxButton").jqxButton({
height: '30px',
width: '120px',
theme: 'energyblue',
});
$('#jqxButton').on('click', function () {
var text = $('#jqxDateTimeInput').jqxDateTimeInput('getText');
alert(text);
});