JavaScript MaskedInput
Bind to the change event by type:jqxMaskedInput Author: http://jqwidgets.com
by jqwidgets
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 id='jqxMaskedInput' />
JavaScript
$("#jqxMaskedInput").jqxMaskedInput({
width: '250px',
height: '25px',
value: 30000,
mask: "#####"
});
// change occurs when the value is changed and on blur.
$('#jqxMaskedInput').on('change', function () {
alert("The value has been changed");
});