JavaScript Complex Input
Invoke the val 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="Set new value" />
</div>
JavaScript
$("#jqxComplexInput").jqxComplexInput({
theme: "energyblue",
width: 250,
height: 25,
value: "22 - 3i"
});
$("#jqxButton").jqxButton({
theme: "energyblue",
height: "30px",
width: "120px"
});
$("#jqxButton").on("click", function () {
$("#jqxComplexInput").jqxComplexInput("val", "1000 - i");
});