Validate and change

T

tshad

I am trying to set up my page to validate that the Currency input the user
put in is valid and to also change the field to readable format. I would
like to do this without going back to the server and make the change when
the user tabs out of the field.

For example:

I want to be able to recognize:
10000
$10000
10,000
10,000.00
10K

I would like to reformat the above as
10,000 or as $10,000.

I assume I would have to do this in Javascript, but not sure how to connect
it to the field to do this as he is leaving and not postback.

Thanks,

Tom
 
B

BillGatesFan

When the person leaves a postback does not occur? How are you saving
anything? I believe there is Javascript function that can perform the
reformat but I think you might have to write your own custom function
to get exactly what you want.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top