Advertisement
contatowellington

Untitled

Apr 17th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <script type="text/javascript">function SubstituiVirgulaPorPonto(campo){ campo.value = campo.value.replace(/,/gi, ".");}</script>
  2. <input name="quantidade" type="text" id="quantidade" style="font-size:40px;" onfocus="this.className = 'CSS_FOCUS_IN';Calc();SubstituiVirgulaPorPonto(this);" onblur="Calc();this.className = 'CSS_FOCUS_OUT'" onkeyup="SubstituiVirgulaPorPonto(this);Calc();lucro()" size="8" autofocus="autofocus"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement