Does anybody have an elegant solution to the problem below? I can piecemeal to get the desired solution but it looks like garbage to me, granted I have the flu right now and the cough syrup is making my brain run like mush.
Basically I have a textbox that the user enters a dollar amount in. I want it to function just like a credit card punch terminal or hundreds of other monetary input devices, which is to act like this.
Display: $0.00
<user hits 5>
Display: $0.05
<user hits 6>
Display: $0.56
<user hits 7>
Display: $5.67
So on and so forth, adding commas as needed as it scales up. So basically as you type it automatically right justifies the number in the format field. I've tried messing with input masks and can't get them to work right for this as the mask always starts at the left-most position. Setting formatting to currency works the same way, typing 55 gets you $55 not $0.55.
Thoughts? Ideas? Simple setting for the textbox that I overlooked in my sickly state?
Basically I have a textbox that the user enters a dollar amount in. I want it to function just like a credit card punch terminal or hundreds of other monetary input devices, which is to act like this.
Display: $0.00
<user hits 5>
Display: $0.05
<user hits 6>
Display: $0.56
<user hits 7>
Display: $5.67
So on and so forth, adding commas as needed as it scales up. So basically as you type it automatically right justifies the number in the format field. I've tried messing with input masks and can't get them to work right for this as the mask always starts at the left-most position. Setting formatting to currency works the same way, typing 55 gets you $55 not $0.55.
Thoughts? Ideas? Simple setting for the textbox that I overlooked in my sickly state?