Jquery Globalization works great.
You can format a currency doing something like this:
$("#currencyInput").val(Globalize.format(100000.25, "c"));
Is possible to reverse the formatting to be able to edit the value back? (keeping the culture format)
$("#currencyInput").val(Globalize.reverseFormat("$100,000.25", "c"));// 100000.25
The Globalize plugin provides
parseInt()
andparseFloat()
methods that you can use: