开发者

Format an input with Jquery?

I'm building a calculator that has a slider. Everytime I slide the bar an input box is updated with the number, the calculator pass开发者_StackOverflow社区es the value and updates the calculation.

So my input boxes have dollar values that can range anywhere from $0 to $10,000.

Right now my boxes display 0 to 10000 and I want them to be displayed as $0 to $10,000.

I'm assuming jquery would be my best route here. How do I format an input box to display values like this. Sort of like an input mask.

note: users never have to type into the input box, its all controlled by the slider.


I think you might want to check out this plugin: http://plugins.jquery.com/node/14738

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜