public
Description: jquery plugin to mask data entry in the input text in the form of money (currency).
Homepage:
Clone URL: git://github.com/plentz/jquery-maskmoney.git
name age message
file README Thu Oct 29 18:51:15 -0700 2009 just some changes in copyright and examples [plentz]
file jquery.maskMoney.js Thu Oct 29 18:51:15 -0700 2009 just some changes in copyright and examples [plentz]
README
Just a simple way to create masks to your currency form fields with jquery.

USAGE:

<script src="jquery.js" type="text/javascript"></script>
<script src="jquery.maskMoney.js" type="text/javascript"></script>
<script>
$(function(){
  $("#currency").maskMoney();
  $("#real").maskMoney({symbol:"R$", decimal:",", thousands:"."});
  $("#precision").maskMoney({precision:3})
})
function removeMask(){
  $("#currency").unmaskMoney();
}
</script>

Default options are (but you can always change that):
  symbol:'US$',
  decimal:'.',
  precision:2,
  thousands:',',
  allowZero:false,
  showSymbol:false

Copyright (c) 2009 Aurélio Saraiva (aureliosaraiva@gmail.com)
* Special thanks to Raul Pereira da Silva (contato@raulpereira.com) and Diego Plentz (http://plentz.org)