1
I’m looking to develop an example Simulator: from 1 real to 99 real he multiplies by X10 and above 100 real he multiplies by X11.
I was wondering how you convert the campo1 for real when typing?
Code:
<html>
   <body>
       <head>
       </head>
<script> 
function soma() 
{
form.campo4.value = (form.campo1.value*1) * (form.campo2.value*1)
$('form.campo1').priceFormat({
    prefix: 'R$ ',
    centsSeparator: ',',
    thousandsSeparator: '.'
});
}
</script>
<form name="form">
    <p> Simulador de Cash's</p>
<input name="campo1" type="text" value="" class="soma"><br> 
<input name="campo2" value="22" readonly><br> 
<input name="campo4" readonly><br>
<input type="button" onclick="soma()" value="CALCULAR">
</form>
 </body>
</html>
						
Depends, what would be the monetary value of the
campo1?– Pedro Pinto