jQuery MaskedInput
Invoke the focus method of the 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' />
<div>
<input style="margin-top: 20px;" type="button" id='jqxButton' value="Focus"/>
</div>
JavaScript
$("#jqxMaskedInput").jqxMaskedInput({
width: '250px',
height: '25px',
value: 30000,
theme:'energyblue'
});
$("#jqxButton").jqxButton({
height: '30px',
width: '120px',
theme: 'energyblue'
});
$('#jqxButton').on('click', function () {
$('#jqxMaskedInput').jqxMaskedInput('focus');
});