Quantcast
Channel: Latest Free Bootstrap 5/4/3 Extensions & Plugins - CSS Script
Viewing all articles
Browse latest Browse all 166

Easy Input Spinner For Number Input – input-numspin

$
0
0
input-spinner-number

An easy-to-use number input spinner plugin created for the latest Bootstrap 5 framework.

How to use it:

1. Load the required Bootstrap 5 framework.

<link rel="stylesheet" href="/path/to/cdn/bootstrap.min.css" />
<script src="/path/to/cdn/bootstrap.bundle.min.js"></script>

2. Load the input-numspin plugin.

<script src="js/input-numspin.min.js"></script>

3. Add the data-numspin attribute to the target number input. That’s it.

<input type="number" class="form-control" data-numspin />

4. The plugin supports native HTML attributes like min, max, min, values, etc.

<input type="number" class="form-control" data-numspin step="1" min="0" max="100" value="10" />

5. Add prefix & suffix to the number input.

<input type="number" class="form-control" data-numspin data-prefix="$" />
<input type="number" class="form-control" data-numspin data-suffix="%" />

The post Easy Input Spinner For Number Input – input-numspin appeared first on CSS Script.


Viewing all articles
Browse latest Browse all 166

Trending Articles