For some reason every time I do this:
b=document.the_form.days.value;
x=(6 + b);
document.the_form.result.value=x;
Instead of getting a sum, it places the numbers beside each other(i.e. if b=1, I get 61).
If I do this:
b=document.the_form.days.value;
x=(6 * b);
document.the_form.result.value=x;
It works the way it should and multuplies the values. What's wrong here?
b=document.the_form.days.value;
x=(6 + b);
document.the_form.result.value=x;
Instead of getting a sum, it places the numbers beside each other(i.e. if b=1, I get 61).
If I do this:
b=document.the_form.days.value;
x=(6 * b);
document.the_form.result.value=x;
It works the way it should and multuplies the values. What's wrong here?