Validate and change

  • Thread starter Thread starter tshad
  • Start date Start date
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
 
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.
 
Back
Top