A Bootstrap 4 / jQuery plugin to create input spinner elements for number input.
The following contains examples of the InputSpinner's main features
Type in a number to see the difference between change and input events.
Value on input:
Value on change:
Net
Gross (+19%)
Attributes are handled dynamically.
Try to change the class to "is-invalid" or "text-info".
Sizing works out of the box. Just set the original inputs class to form-control-sm or form-control-lg, and the resulting group gets the class input-group-sm or input-group-lg.
Small
Large
Prefix
Suffix
This Input starts from 0 when reaching 360.
Use the data-step-max attribute to limit the step velocity.
"Loop" the value between 0 and 360 with the change event in JavaScript.