DOM Properties

ValidityState.rangeUnderflow

True when a supported numeric or date value is below its applicable min. Empty controls are handled by required, not by this flag. Example result: true.

Formal Syntax & Structure

html syntaxhtml
input.validity.rangeUnderflow

Return Value

boolean

Read-only constraint flag.

Working Example

Example Snippethtml
<input type="number" min="5" value="3" aria-label="Quantity"><p>  Result:  <output id="result"></output></p><script>  const result = document.getElementById("result");  (async () => {  const input = document.querySelector("input");  result.textContent = input.validity.rangeUnderflow;  })().catch(error => { result.textContent = "Error: " + error.name; });</script>
HTML Reference