Changes

Jump to: navigation, search

SsFormatCurrency

169 bytes added, 16:11, 30 July 2014
m
Example: - extra example
{{JavaScript Syntax}}
==Overview==
To format a number as a currency using [[JavaScript ]] you can use a function called ssFormatCurrency. 
==Syntax==
Will return: €5,000.00
<pre>
ssFormatCurrency(5000, " ");
</pre>
 
Will return: 5,000.00
==Requirements==
This function is part of <b>validate.js</b> library and needs to be added to [[Browser Script]] custom fields or on template pages, sign-up pages etc. using the following syntax:
<SCRIPT type="text/javascript" language="javascript" src="/validate.js"></SCRIPT>
 
==See Also==
* [[SsParseNum]]
[[Category:JavaScript]]
[[Category:validate.js]]
[[Category:Currency]]
[[Category:Validation]]
0
edits

Navigation menu