Hello,
Please could you help me with some JS? I only know my way around HTML/JS and I'm stuck here.
I would like the user to enter two numbers. The fist number is multiplied by 25, which works.
The second number is supposed to be added to the first result. However, as the second result I only get the second number added in writing after the first result, but not added mathematically.
How do I need to change the code below?
Many thanks!
Code:<input type="text" id="Editbox1" name="quantity1" value="" wrap onKeyUp=" val = this.value; this.form.amount1.value=25*this.value; "> <input type="text" id="Editbox2" name="amount1" value="" onFocus="this.blur" readonly > <br> <input type="text" id="Editbox3" name="quantity1" value="" wrap onKeyUp=" val = this.value; this.form.amount.value=(this.form.amount1.value+this.value); "> <input type="text" id="Editbox4" name="amount" value="" onFocus="this.blur" readonly >



Reply With Quote

Bookmarks