Hi , I need to do javascript money validation for a field. the condtions are

1) depending on the Locale (not sure if this can be done in JS like US,Germany..)
2) verify if it has $,pound symbol, yen symbol..
3) group the digits either like 00,00,000 or 000,000,000
4) accept 2 digits decimal 000,000.00


cud some one help me with the code please?
thanks

Mushget,

You will most probably end up using a regular expression.

Tyr here - search on "currency". I had a quick look and couldn't see exactly what you want but there were plenty more results.

Airshow

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.