Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text box calculations in a Table

Status
Not open for further replies.

data1

Programmer
Aug 19, 2003
25
NZ
Could anyone tell me how do you go about in JavaScript to calculate or add text boxes together to give a total in another text box in the same table row like textbox value=1 + textbox2 value=3 =total in text box 4 value =4
 
>> Could anyone tell me how do you go about in JavaScript

(1) Did you look through some of the FAQs?

(2) It would help to have some idea of what you know or don't know. Did you try to write some code to do this? You should post some small amount of it to give some idea of what specific help you need.



-pete
 
Something like this?
f=document.formName
f.t3.value=(f.t1.value-0)+(f.t2.value-0)

Adam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top