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