views:

564

answers:

1

Can you suggest a locale-aware way to validate a currency value on the client using Javascript?

Obvious issue to consider: 1,234.56 in the US and UK is the same as 1.234,56 in most of Europe

Sri

+1  A: 

Here's a link to a free javascript library that can help you with that: Dojo Currency Formatter, there's also a similar feature in ASP.NET Ajax.

ichiban
Going by the docs this appears to *format* the given number and not validate it.
Sri Sankaran