Right, basically I want "inputC" to be the value of the calculation without having to put it within form tags, any ideas?!
Code:<form TheForm> <input type="text" name="inputA"> <input type="text" name="inputB"> <input type="button" value="Calculate" onClick=calculate()> </form> <script type="text/javascript"> function calculate() { var A = document.TheForm.inputA.value; var B = document.TheForm.inputB.value; var C = A*B; } </script> <input type="text" name="inputC">


Reply With Quote

Bookmarks