jQuery NumericTextBox Getting Started

The NumericTextBox widget can be used for limiting the type of input to a number only, adding min and max boundaries for the value, increase/decrease step, custom templates and other functionality.
To initialize the NumericTextBox component, follow the steps below:
1. Include references to all required scripts. Make sure you include the CSS file for your preferred theme.
2. Add an input element for which to initialize the NumericTextBox functionality.
3. Initialize the widget.

<!DOCTYPE html>
<html>
<head>
<title>ShieldUI NumericTextBox</title>
<meta charset="utf-8" />

<link rel="stylesheet" type="text/css" href="css/light/all.min.css" />
<script src="js/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="js/shieldui-all.min.js" type="text/javascript"></script>
</head>
<body>

Box Weight: <input id="weight" value="20" />

<script type="text/javascript">
    $(function () {
        $("#weight").shieldNumericTextBox({
            min: 10,
            max: 120,
            textTemplate: "{0:n} kg"
        });
    });
</script>
</body>
</html>

To see an example of the control in action, along with all the required code, please refer to the following example.