jquery屏蔽输入插件允许可变长度?
屏蔽输入插件允许您定义恒定长度的屏蔽。我正在寻找具有类似功能的插件,允许可变长度输入。
一个用例是货币输入。当用户输入数字时,插件会在适当的情况下添加千位分隔符、小数点和货币符号。
有谁知道有什么可以货币的东西,或者更通用的东西吗?
The masked input plugin allows you to define constant-length masks. I am looking for a plugin with similar functionality that allows for variable length input.
A use-case for this would be currency entry. As user enters digits, the plugin would add thousands separators, decimal point and currency symbol where appropriate.
Does anyone know of anything that does currency, or even something more generic?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
找到了我所需要的货币:
http://www.decorplanit.com/plugin/
found exactly what i needed for currency:
http://www.decorplanit.com/plugin/
这可能适合您: http://plugins.jquery.com/project/priceformat
有其主页上有很多示例: http://www.jquerypriceformat.com/
This might work for you: http://plugins.jquery.com/project/priceformat
There are a bunch of examples at its homepage: http://www.jquerypriceformat.com/