JQuery Input
Invoke the val method of the jqxInput.
Author: http://jqwidgets.com
HTML
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<script src="http://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<input type="text" id="input" />
JavaScript
$("#input").jqxInput({
height: 25,
width: 200,
theme: 'energyblue'
});
var isChanged = false;
$('input').change(function(event) {
var a = $('#input').val();
if (!isChanged) {
isChanged = true;
$('#input').val(a + 1);
}
setTimeout(function() {
isChanged = false;
}, 50);
$(this).css('background-color', 'red');
});