CurrencyFormat is an Edit plugin that formats numbers as currency as user types them in. It works with any numeric data types though it makes more sense to use decimal/float type.
To configure the plugin you can either specify a locale or specify individual settings manually. $this->settings["locale"] = "en-US"; //or //$this->settings["decimalSymbol"] = "."; //$this->settings["digitGroupSymbol"] = ","; //%s - symbol, %n - decimal //$this->settings["positiveFormat"] = "%s%n"; //$this->settings["roundToDecimalPlace"] = 2; //$this->settings["symbol"] = "$"; The list of all available locales can be found in jquery.formatCurrency.all.js file. Reviews![]() ![]() ![]() ![]() ![]() xlinesoft
2024-Nov-20
Rating only
|
|