Click to See Complete Forum and Search --> : function


tintin_taurus
04-08-2003, 02:58 AM
:confused:

I try out tis function but then it did not somehow add all the numbers up..

function compute() {
with (document.num) {
travel.value=len.value+y.value+overtravel.value;
}
}
all it did is tat.. example i enter in 2, 1 and 3
instead of adding all up which is 6,
the answe tat they give me is 213.. which is huge different

Need help desperately
:confused:

Ice3T
04-08-2003, 03:23 AM
try
travel.value=eval(len.value+y.value+overtravel.value);