stepUp method
Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value.
![]() ![]() |
Syntax
var retval = HTMLInputElement.stepUp(n);Parameters
- n [in, optional]
-
Type: Integer
Return value
Type: HRESULT
This method can return one of these values.
- S_OK
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.10.7.4
Remarks
Throws an InvalidStateError exception if the control doesn't support stepUp, if the Step attribute's value is "any", if the current value could not be parsed, or if stepping in the given direction by the given amount would take the value out of range. Versions earlier than Internet Explorer 10 will throw the exception as INVALID_STATE_ERR.
See also
Show:

