This jquery plug-in adds an auto-increment or auto-increment button to your text box to facilitate the control of input values. Sometimes you need to implement the value auto-increment or auto-increment function for the text box when designing the form. For example, the default value is 1. Click the up button to add the specified step value, click the down Button to reduce the specified step value. This function can be implemented using jQuery Spin Button, which requires only a few lines of code. The effect is shown in figure
Instructions for use
1. You need to use the jQuery library file and the jQuery Spin Button library file (current version 1.1.1)
Material Preparation
Up and down button image, the default path is:/img/spin/, up and down button image name: spin-button.png, can be customized Modification
Instance code
1. Contains the file section
The Code is as follows: