Hello everybody
Can somebody tell me what is wrong sith this code?
Very new to JS and about to shoot myself.
Simple script to pick values form several texboxes (named PMV[1], PMV[2], PMV[3] from form (TTTForm) and add them up and show them in another texbox with click of a button:
<script type="text/javascript">
<!--
function Addup()
{
var PMNUMBR = 3;
var VTOTAL = 0 ;
for (var i=1;i<=PMNUMBR;i++)
{
VTOTAL = VTOTAL + parseFloat(document.TTTForm["PMV[i]"].value);
}
document.TTTForm.TotalBox.value=VTOTAL;
return
}
//-->
</script>
here is the button;
Bookmarks