-
Notifications
You must be signed in to change notification settings - Fork 22.5k
/
index.md
43 lines (31 loc) · 1014 Bytes
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
title: "Element: ariaValueMin property"
short-title: ariaValueMin
slug: Web/API/Element/ariaValueMin
page-type: web-api-instance-property
browser-compat: api.Element.ariaValueMin
---
{{APIRef("DOM")}}
The **`ariaValueMin`** property of the {{domxref("Element")}} interface reflects the value of the [`aria-valuemin`](/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-valuemin) attribute, which defines the minimum allowed value for a range widget.
## Value
A string which contains a number.
## Examples
In this example the `aria-valuemin` attribute on the element with an ID of `slider` is set to "1". Using `ariaValueMin` we update the value to "2".
```html
<div
role="slider"
aria-valuenow="1"
aria-valuemin="1"
aria-valuemax="7"
aria-valuetext="Sunday"></div>
```
```js
let el = document.getElementById("slider");
console.log(el.ariaValueMin); // 1
el.ariaValueMin = "2";
console.log(el.ariaValueMin); // 2
```
## Specifications
{{Specifications}}
## Browser compatibility
{{Compat}}