A Bootstrap 4 / jQuery plugin to create input spinner elements for number input, by shaack.com engineering.
License: MIT
The Bootstrap 4 InputSpinner is
This script enables the InputSpinner for all inputs with type='number' on this page. No extra css needed, just Bootstrap 4.
<script src="./src/bootstrap-input-spinner.js"></script>
<script>
$("input[type='number']").inputSpinner()
</script>
Find the source code, more documentation and the npm package at
The following contains examples of the InputSpinner's main features
You can set the group css class via configuration.
Small
$("input.small").inputSpinner({groupClass: "input-group-sm"})
Large
$("input.large").inputSpinner({groupClass: "input-group-lg"})
Start from 0 when reaching 360
If you like this plugin you may also want to check out our bootstrap-show-modal.
And if you find bugs or have suggestions, you may write an issue.