How to format price using jQuery
jQuery Price Format is a plugin to format input text fields as prices. For example, if you type 123456, the plugin updates it to US$ 1,234.56. It is costumizable, so you can use other prefixes and separators (for example, use it to get R$ 1.234,55).
How to use it?
Download the plugin library and include its reference along with jQuery library.
Basic usage
$('#txtPrice').priceFormat();
With some customization
$('#txtPrice1').priceFormat({ prefix: 'R$ ', centsSeparator: ',', thousandsSeparator: '.' });
See result below.
Feel free to contact me for any help related to jQuery, I will gladly help you.