Easy Tutorial
❮ Jsref Valueof Array Prop Number Type ❯

Input Range value Attribute

Input Range Object

Example

Modify the value of the slider control:


Definition and Usage

The value attribute is used to set or return the value of the slider control.

The value attribute describes the user input value, default value, or script input value.


Browser Support

All major browsers support the value attribute.

Note: Internet Explorer 9 and earlier versions do not support the HTML <input> element with the type="range" attribute.


Syntax

Return the value attribute:

Set the value attribute:

Attribute Values

Value Description
number Describes the initialization (default) value of the slider control. If not specified, the default value is "50"

Technical Details

| Return Value: | String, representing a number | | --- | --- |


More Examples

Example

Get the numeric value of the slider control:


Related Pages

HTML Reference: HTML <input> value Attribute


❮ Jsref Valueof Array Prop Number Type ❯