please see the script below
this work fine if i click on the time lost to weather button, but want i would like to do is either poplulate the vaule dynamically or when i submit the form
can any one help
Code:
<SCRIPT LANGUAGE="JavaScript"> function calculate() { var total = 0; for (var i = 1; i < arguments.length; i++) { total += parseInt(arguments[i].value, 10); } document.forms.myForm._1_1_82_1.value = total; </SCRIPT> <input type="button" value="Time lost to weather" onclick="calculate(0, this.form._1_1_44_1_84_1, this.form._1_1_44_1_101_1, this.form._1_1_44_1_102_1, this.form._1_1_44_1_106_1, this.form._1_1_44_1_110_1);"> </FORM>
can any one help
Comment