Jquery Plus/Minus Incrementer

后端 未结 10 1226
挽巷
挽巷 2021-01-01 03:53

I want to have a client side Plus / Minus system where a user can click the plus and a value is incremented by 1, minus and the value is decreased by 1, the value should nev

10条回答
  •  感动是毒
    2021-01-01 04:21

    If anyone's looking to have more than 1 incrementing input field on a page. Checks to see if .plus or .minus is clicked then changes the value of the sibling input, so you can have as many fields as you like.

    
    
           
    - +
    - +

提交回复
热议问题