Skip to content

ggarnier/jquery-maskmoney

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 

Repository files navigation

Just a simple way to create masks to your currency form fields with jQuery.


Usage:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.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,
allowNegative:false,
showSymbol:false,
symbolStay:false,
defaultZero:true

Contributors:


License:

jQuery-maskMoney is released under the MIT license.

About

jQuery plugin to mask data entry in the input text in the form of money (currency).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%