Click to See Complete Forum and Search --> : how to refresh data textbox


awkaj
07-31-2003, 12:50 AM
who can tell me how to refresh data textbox, i have 3 input / textbox

i want 3rd textbox value = 100 - (1st textbox value + 2nd textbox value)

if i input number in 1st or 2nd textbox, the 3rd textbox automate refresh and calculate . if 1st textbox = 10 and 2nd textbox empty, the 3rd textbox = 90

i want this code can detect number / alpha , so if i input '1a' it will shown the alert and the input focused and empty.

and if the textbox is empty the value=0

thank's for help

Khalid Ali
07-31-2003, 09:01 PM
readup on the onchange event of the input tag...

awkaj
07-31-2003, 09:30 PM
can you tell me the code ?
i was try it with onChange event, but it will work if the input jump to another input (2nd textbox).

:confused: