Example 1 — Read ariaValueMin
Log the minimum from a day-of-week slider.
const el = document.getElementById("slider");
console.log(el.ariaValueMin); // "1"
// HTML: role="slider" aria-valuemin="1" … How It Works
- Find the slider.
getElementByIdreturns the range widget node. - Read the reflection.
ariaValueMinreturns thearia-valueminstring. - Interpret
"1". Assistive technologies treat 1 as the floor of the range. - Missing attribute. If unset, many browsers return
null.

