JQuery-based SpinButton custom text box value auto-increment or auto-Subtract _ jquery

Source: Internet
Author: User
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:


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.