budimir Posted September 13, 2008 Share Posted September 13, 2008 Hey guys, Can you tell me why this won't work when I enter decimal numbers? <script type="text/javascript"> <!-- Begin function startCalc5(){ interval = setInterval("calc5()",1); } function calc5(){ one = document.autoSumForm1.dnev.value; two = document.autoSumForm1.tecaj.value; document.autoSumForm1.iznos_dnevnice_kn.value = (one * 1) * (two * 1); } function stopCalc5(){ clearInterval(interval); } // End --> </script> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.