【问题标题】:JQuery Price Format for no value/null to number 0无值/空到数字 0 的 JQuery 价格格式
【发布时间】:2015-06-24 02:06:34
【问题描述】:

我正在为文本字段使用 Jquery 价格格式。然后当文本字段默认显示“0”。我不想看到0号,我想要没有价值就是没有价值。我怎样才能做到这一点 ?请帮我。谢谢。

这里是 Jquery 价格格式:http://jquerypriceformat.com/

【问题讨论】:

  • 哪个 JQuery 价格格式插件? this one?

标签: javascript jquery html input


【解决方案1】:

你可以像这样使用:

$('#example5').priceFormat({
  .....
  clearOnEmpty: true  //set this line will be ok
});

DEMO

【讨论】:

    猜你喜欢
    • 2013-07-16
    • 1970-01-01
    • 2011-11-11
    • 1970-01-01
    • 1970-01-01
    • 2016-12-23
    • 1970-01-01
    • 2019-11-10
    • 2017-06-04
    相关资源
    最近更新 更多