Solved

# calculation between 2 text box

Posted on 2009-05-03

very simple question here for a Guru

given 2 text box how can I change the value of 1 text box by entering a value in another text box and vice versasome example

start with

[20] [0] change the 0 for a 2 and you get [18] [2] //20 and 0 are values from db

change [18] for [19] and you get [19] [1]

change [19] for [21] and you get [21] [0] here by going over 20 I do not want to get a negative number in the other box.

What if I have multiple boxes dynamically generated (multiple pair).

This is in relation with another question I have open where I may be asking to much so if I can have the basic I may be able to work something out.