Format an input with Jquery?
        Posted  
        
            by Wes
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Wes
        
        
        
        Published on 2010-05-12T01:01:03Z
        Indexed on 
            2010/05/12
            1:04 UTC
        
        
        Read the original article
        Hit count: 291
        
I'm building a calculator that has a slider. Everytime I slide the bar an input box is updated with the number, the calculator passes 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.
© Stack Overflow or respective owner