入力時間stepUp()メソッド
例
時間フィールドの値を10分インクリメントします。
document.getElementById("myTime").stepUp(10);
定義と使用法
stepDown()メソッドは、時間フィールドの値を指定された数だけインクリメントします。
このメソッドは、MINUTESにのみ影響します(時間、秒、またはミリ秒には影響しません)。
ヒント:値をデクリメントするには、stepDown()メソッドを使用します。
ブラウザのサポート
Method | |||||
---|---|---|---|---|---|
stepUp() | Yes | 12.0 | Not supported | Yes | Yes |
構文
timeObject.stepUp(number)
パラメータ値
Parameter | Description |
---|---|
number | Required. Specifies the amount of minutes the time field should increase. If omitted, the minutes are incremented by "1" |
技術的な詳細
戻り値: | 戻り値なし |
---|
その他の例
例
分を1インクリメントします(デフォルト):
document.getElementById("myTime").stepUp();
❮入力時間オブジェクト