/

HTML / CSS / JavaScript Tutorial

JavaScript input object method: stepUp()

[this page | pdf]

The stepUp() method of the JavaScript DOM object corresponding to the HTML <input> element (of type datetime, datetime-local, month, number, range, time, week) increments the value of the relevant field by a specified amount.

 

It has the following syntax with the following parameters.

 

object.stepUp(x)

 

Parameter

Required / Optional

Description

x

Optional

(default is 1). Specifies amount by which number field value is increased

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile