JavaScript Complex Input
Invoke the destroy method of the jqxComplexInput. Author: http://jqwidgets.com
by jqwidgets
HTML
<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.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">
<input id="jqxComplexInput" type="text" />
<div>
<input style="margin-top: 20px;" type="button" id="jqxButton" value="Destroy the complex input" />
</div>
JavaScript
$("#jqxComplexInput").jqxComplexInput({
theme: "energyblue",
width: 250,
height: 25,
value: "22 - 3i"
});
$("#jqxButton").jqxButton({
theme: "energyblue",
height: "30px",
width: "200px"
});
$("#jqxButton").on("click", function () {
$("#jqxComplexInput").jqxComplexInput("destroy");
});