JavaScript Formatted Input
Invoke the selectFirst method of the jqxFormattedInput. 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">
<div id="jqxFormattedInput">
<input type="text" />
<div></div>
</div>
<div>
<input style="margin-top: 20px;" type="button" id="jqxButton" value="Position the caret at the beginning" />
</div>
JavaScript
$("#jqxFormattedInput").jqxFormattedInput({
theme: "energyblue",
width: 200,
height: 25,
radix: "binary",
value: "11111101",
spinButtons: true
});
$("#jqxButton").jqxButton({
theme: "energyblue",
height: "30px"
});
$("#jqxButton").on("click", function () {
$("#jqxFormattedInput").jqxFormattedInput("selectFirst");
});