<html>
<head>
<title>Exemplo</title>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script src="js/jquery.maskMoney.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
$("#real").maskMoney({symbol:"R$", decimal:",", thousands:".", precision:2});
})
</script>
</head>
<body>
<p>Valor em R$: <input type="text" id="real" /></p>
</body>
</html> |