I want to increase the value of text field on page load in JavaScript.
For example
<input type="text" name="itemquantity[]" value="1"/>
after pageload it shoud be like
<input type="text" name="itemquantity[]" value="2"/>
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.
You can do this :
At each load of the page, the value will be incremented by 1, with initial value being 1.