MVC5 Classic
wijinputnumber Step 2 of 3: Initializing the Widgets

In the previous step, you added markup to create the input textbox. Now you can add the jQuery script to use the widget to display a number with three decimal places.

After the closing </div>  tags for the input textbox, enter the following jQuery script to initialize the wijinputnumber widget:

<script id="scriptInit" type="text/javascript">
        $(document).ready(function () {
            $("#textbox1").wijinputnumber(
                  {
                      type: 'numeric',
                      minValue: -100,
                      maxValue: 1000,
                      decimalPlaces: 3,
                      showSpinner: true
                  });
        });
      </script>

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum |  Documentation Feedback