Hi,
I´m building a form and decided to throw myself at some Javascript, even though im definetely no expert. Thats why i now need help :-/
I´m building a fairly simple HTML form where the user types in data about himself.
One of the form fields contain the number 0 which can then be changed by the user manually (which then results in some calculations etc...). However i would very much like to have a button that is able to add 1 to the form field when it is clicked - also it would be nice to have one that subtracts 1.
I am guessing i need a piece of code that adds +1 (or subtracts) from the value of the form field? But how i would do that i have no idea. I hope someone here can help me out?
Thx for the help and a great place to learn Javascript :-)
I´m building a form and decided to throw myself at some Javascript, even though im definetely no expert. Thats why i now need help :-/
I´m building a fairly simple HTML form where the user types in data about himself.
One of the form fields contain the number 0 which can then be changed by the user manually (which then results in some calculations etc...). However i would very much like to have a button that is able to add 1 to the form field when it is clicked - also it would be nice to have one that subtracts 1.
I am guessing i need a piece of code that adds +1 (or subtracts) from the value of the form field? But how i would do that i have no idea. I hope someone here can help me out?
Thx for the help and a great place to learn Javascript :-)
Comment