Jerry
Something like
document.forms[0].total.value = parseInt(document.forms[0].a.value) +
parseInt(document.forms[0].b.value) + parseInt(document.forms[0].c.value);
Nick
-----Original Message-----
From: Jerry Staple [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 9:33 AM
To: CF-Talk
Subject: JavaScript
Hi,
Could anyone inform me of any javascript function that takes the total
of numbers entered into a textbox and displays them in another? eg
<form name="form1">
Item a = 2 (number in text box)
Item b = 3
Item c = 4
Total = 9 (this total is generated by adding the items in the textboxes
above)
</form>
Any help will much apreciated
Jerry Staple
Jerry Staple
Web Applications Developer
BizNet Solutions
133 - 137 Lisburn Rd
Belfast
BT9 7AG
Tel: +44 (0)28 9022 3224
Fax: +44 (0)28 9022 3223
www.biznet-solutions.com
**********************************************************************
Information in this email is confidential and may be privileged.
It is intended for the addressee only. If you have received it in error,
please notify the sender immediately and delete it from your system.
You should not otherwise copy it, retransmit it or use or disclose its
contents to anyone.
Thank you for your co-operation.
**********************************************************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists