Increment the value of a number field by 5:
The stepUp() method increments the value of the number field by a specified number.
Tip: To decrement the value, use the stepDown() method.
The stepUp() method is supported in all major browsers, except Internet Explorer.
Note: In Safari, you must enter a number in the number field before you can increment the value.
Parameter | Description |
---|---|
number | Required. Specifies the amount the value of the
number field should increase. If omitted, the numbers are incremented by "1" |
Return Value: | No return value |
---|
Increment the value of a number field by 1 (default):