With JavaScript, how can I do it so when I click a form button it adds 1 to a number?
The number it increments could be in a form text field or something.
Obviously it’d be on onclick but I’m not sure of the code.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since you gave me nothing to start on, here is a simple example.
jsFiddle
Example implementation:
Example Html