jqxNumberInput focusing
When I assign a value to jqxNumberInput control, it sets focus automatically. I wish jqxNumberInput control didn't move the focus like jqxInput control does. How can I do?
by inee814
HTML
<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">
<input type="text" id="jqxInput" /><br/>
<div id='jqxNumberInput'></div>
<div>
<input style="margin-top: 20px;" type="button" id='jqxButton'value="Set new value" />
</div>
JavaScript
$("#jqxInput").jqxInput({
width: '250px',
height: '25px',
theme: 'energyblue',
});
$("#jqxNumberInput").jqxNumberInput({
width: '250px',
height: '25px',
theme: 'energyblue',
spinButtons: true,
});
$("#jqxButton").jqxButton({
height: '30px',
width: '120px',
theme: 'energyblue',
});
$('#jqxButton').on('click', function () {
setTimeout(function() {
$('#jqxInput').jqxInput('val',111);
}, 4000);
setTimeout(function() {
$('#jqxNumberInput').val(222);
}, 2000);
});