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/InputSpinner.js"></script> <script> $("input[type='number']").InputSpinner() </script>
Find the source code, more documentation and the npm package at
The following contains examples of all Bootstrap 4 InputSpinners 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"})