Search.../

max

Sets or gets the maximum allowed input value.

Description

Set to null or undefined to remove the maximum allowed value.

Type:

numberRead & Write

Was this helpful?

Get max allowed input

Copy Code
1let myMax = $w('#myNumberInput').max; // 50
Set max allowed input

Copy Code
1$w('#myNumberInput').max = 50;
Remove the maximum limit on input

Copy Code
1$w('#myInput').max = null; // No maximum