Jquery Plus/Minus Incrementer

后端 未结 10 1227
挽巷
挽巷 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:11

    Here is my quite more complex version, you juste need to give the class "mkdminusplus" to your div:

    and then add

    
    

    I've used bootstrap icons for the buttons but you can also hardcode - and + as it! ;-) Hope it will help others!

提交回复
热议问题