jqwidgets-framework
Version:
jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.
37 lines (34 loc) • 2.26 kB
HTML
<html lang="en">
<head>
<title id="Description">In this jqxFormattedInput demo the input is restricted from
0 to 1000 (decimal). When the user enters a value whose decimal equivalent is not
from 0 to 1000, the jqxFormattedInput automatically updates the value to the chosen
numeral system's equivalent of 0 or 1000 depending on whether the value's decimal
equivalent is below 0 or above 1000. That happens on blur event or Enter keypress.
</title>
<meta name="description" content="In this jqxFormattedInput demo the input is restricted from 0 to 1000 (decimal). When the user enters a value whose decimal equivalent is not from 0 to 1000, the jqxFormattedInput automatically updates the value to the chosen numeral system's equivalent of 0 or 1000 depending on whether the value's decimal equivalent is below 0 or above 1000. That happens on blur event or Enter keypress." />
<link rel="stylesheet" href="../../../jqwidgets/styles/jqx.base.css" type="text/css" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" />
<script type="text/javascript" src="../../../scripts/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="../../../jqwidgets/jqxcore.js"></script>
<script type="text/javascript" src="../../../jqwidgets/jqxformattedinput.js"></script>
<script type="text/javascript" src="../../../scripts/demos.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$("#jqxFormattedInput").jqxFormattedInput({ width: 250, height: 25, radix: "decimal", value: "0", min: "0", max: "1000", spinButtons: true });
});
</script>
</head>
<body>
<div id="jqxFormattedInput">
<input type="text" />
<div>
</div>
</div>
<div style="position: absolute; bottom: 5px; right: 5px;">
<a href="https://www.jqwidgets.com/" alt="https://www.jqwidgets.com/"><img alt="https://www.jqwidgets.com/" title="https://www.jqwidgets.com/" src="https://www.jqwidgets.com/wp-content/design/i/logo-jqwidgets.png"/></a>
</div>
</body>
</html>