Is it possible to customize an input field for amounts with +- buttons?

前端 未结 3 1822
梦如初夏
梦如初夏 2021-01-20 00:13

Is it possible with jQuery & CSS to design a input field like that?

\"Amount\"

I am not sure where

相关标签:
3条回答
  • 2021-01-20 00:23

    this is a great plugin!!

    http://demos.kendoui.com/web/numerictextbox/index.html

    0 讨论(0)
  • 2021-01-20 00:27

    Here's simple way based on jQuery.

    http://jsfiddle.net/acodesmith/aykZs/3/

    The buttons aren't pratical, just showing what can be done. The importat part is the parent div.step .

    EDIT: Updated Buttons http://jsfiddle.net/EK9vA/

    0 讨论(0)
  • 2021-01-20 00:27

    With HTML 5 some browser support this:

    <input type="number" name="points" step="1" />
    

    See here for a demo: http://jsfiddle.net/Gsk4f/ (Chrome or Opera)

    This is a new HTML 5 attribute and is not supported by all browser

    0 讨论(0)
提交回复
热议问题