Spinner Spinner is an input component to provide a numerical input via increment and decrement buttons.

Default

Step

Min-Max

Prefix

$('#default').puispinner();
                                
<input id="default" type="text" />
                                
Name Type Default Description
step Double 1.0 Step factor to increment/decrement.

No events.

Name Parameters Description
enable - Enable the widget
disable - Disable the widget.
option name: Name of the option Returns the value of the option.
option name: Name of the option, value: Value of the option Set the value of the option.
$(function() {
    $('#basic').puispinner();

    $('#step').puispinner({step:0.25});

    $('#minmax').puispinner({
        min:0,
        max:100
    });

    $('#prefix').puispinner({prefix:'$'});                                           
});
                                
<input id="basic" type="text" />

<input id="step" type="text" />

<input id="minmax" type="text" />

<input id="prefix" type="text" value="$10"/>