171
rated 0 times
[
177]
[
6]
/ answers: 1 / hits: 49624
/ 11 Years ago, tue, october 15, 2013, 12:00:00
I need quick solution to convert currency names to currency symbols.
Like I have GBP which I want to convert into Pound symbol through small javascript/jquery code. Data is totally dynamic.
var currency_symbols = {
'USD': '$', // US Dollar
'EUR': '€', // Euro
'CRC': '₡', // Costa Rican Colón
'GBP': '£', // British Pound Sterling
'ILS': '₪', // Israeli New Sheqel
'INR': '₹', // Indian Rupee
'JPY': '¥', // Japanese Yen
'KRW': '₩', // South Korean Won
'NGN': '₦', // Nigerian Naira
'PHP': '₱', // Philippine Peso
'PLN': 'zł', // Polish Zloty
'PYG': '₲', // Paraguayan Guarani
'THB': '฿', // Thai Baht
'UAH': '₴', // Ukrainian Hryvnia
'VND': '₫', // Vietnamese Dong
};
I can't use any plugin like currenyformat
.
Looking for quick help.
More From » javascript