Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">function SubstituiVirgulaPorPonto(campo){ campo.value = campo.value.replace(/,/gi, ".");}</script>
- <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