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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

inputing currency

Status
Not open for further replies.

OhioSteve

MIS
Mar 12, 2002
1,352
US
Our intranet web page contains a series of text fields that we created using the "input" tag. The users can tab through this series of fields. The users type currency values into these fields.

How do I add these features to the text fields:

1) The users should not be able to enter any values except numerals and periods.

2) A dollar sign should appear as soon as the user types the first number or period.

3) Each entry can have only one period.

4) The users should not be allowed to type more than two numerals after a period. We don't deal with fractions of pennies.

5) After the user enters a period and two numerals, the insertion point should automatically jump to the next field.

 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top