Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

<div class="js-spinner"> <!-- js-spinner is an important scoping class for the input controls. -->
<input type="number" step="4" max="10" min="0" data-stepper-debounce="400" class="js-stepper">
<button type="button" spinner-button="up" title="add 1">+</button>
<button type="button" spinner-button="down" title="subtract 1">-</button>
<button type="button" spinner-button="up" title="add 1" tabindex="-1">+</button>
<button type="button" spinner-button="down" title="subtract 1" tabindex="-1">-</button>
</div>

<script src="./../node_modules/jquery/dist/jquery.slim.min.js"></script>
<script src="./../dest/stepper.js"></script>
</body>
</html>
</html>
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Setting [options](https://github.com/gijsroge/stepper.js#options) is as simple a
<body>
<div class="js-spinner">
<input type="number" step="1" max="10" min="0" data-stepper-debounce="400" class="js-stepper">
<button type="button" spinner-button="up" title="add 1">+</button>
<button type="button" spinner-button="down" title="subtract 1">-</button>
<button type="button" spinner-button="up" title="add 1" tabindex="-1">+</button>
<button type="button" spinner-button="down" title="subtract 1" tabindex="-1">-</button>
</div>

<script src="jquery.js"></script>
Expand All @@ -39,4 +39,4 @@ debounce: 400, // Time in milliseconds to debounce the change event
- https://unpkg.com/[email protected]/dest/stepper.min.js

### Alternatives
- https://github.com/vsn4ik/jquery.spinner
- https://github.com/vsn4ik/jquery.spinner