Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
I broke it.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I broke it.



HI,

I use this to call the following function. I had it working but somehow I broke it. I can't for the life of me see what I'm missing.

Any suggestions?

<input name="payment[0]" id="payment[0]" type="checkbox" value="15" onclick="total_Prices()" />
...
<input id="total_amount_due" name="total_amount_due" value="" type="text" maxlength="10" />


<script type="text/javascript">
			function total_Prices() {
			var a = Number(document.request_form.payment[0].value);
			var b = Number(document.request_form.payment[1].value);
			var c = Number(document.request_form.payment[2].value);
			var x = a + b + c;
			document.request_form.total_amount_due.value = x;
			}
</script>


Bob Poland - Fort Collins, CO



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.