Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting a textbox field for numbers?

Status
Not open for further replies.

AllenRitch

Technical User
Joined
May 20, 2003
Messages
52
Location
US
Is there anyway to format a textbox for decimal points or percentages (much the same way one would in a spreadsheet)?

For example: if the user typed 1.08 in the textbox, I would like it to show 108% after they leave the textbox.
 
Unfortunetly, I'm not that familiar with Javascript. Is there anyway to do it using VBScript or by setting the textbox properties?
 
No on properties and VBScript only works in IE, so you're limited by that.
 
Why don't you try in the JavaScript forum... I'm sure someone would be kind enough to provide a bit of code for you. It is best to ask there because when someone is trying to find the same solution they are likely to find the post when it is where it should be.

Clive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top