简体   繁体   English

jQuery插件的小部件可以上下滚动数字?

[英]Jquery plugin for widget to scroll number up and down?

I'm looking for something that behaves like a text box and a drop-down for numbers. 我正在寻找行为类似于文本框和数字下拉菜单的东西。 It has "up" and "down" buttons on the side. 它的侧面有“向上”和“向下”按钮。 Clicking or holding "up" increases the number on the text box. 单击或按住“向上”将增加文本框中的数字。 Clicking or holding "down" button decreases it. 单击或按住“向下”按钮将其减小。

I remember seeing it in Visual Basic forms but I'm wondering if there is a web equivalent of such a thing; 我记得曾以Visual Basic形式看到过它,但我想知道是否有一个网络等效的东西。 in the form of a jquery plugin or something. 以jQuery插件或其他形式。

I need it to look something like this. 我需要它看起来像这样。

在此处输入图片说明

Bonus points: If I could click on the "up" arrow and drag it upwards, the number should increment faster and vice-versa. 红利点:如果我可以单击“向上”箭头并将其向上拖动,则数字应增加得更快,反之亦然。

The name of the widget is apparently "numeric textbox". 小部件的名称显然是“数字文本框”。 Kendo has a numeric textbox widget that gives this exact behavior, but it's not free. Kendo有一个数字文本框小部件可以提供这种确切的行为,但是它不是免费的。

I found another free widget called jstepper , but it's probably buggy and doesn't provide the behavior I'm expecting. 我找到了另一个名为jstepper的免费小部件,但这可能是错误的,并且没有提供我期望的行为。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM