Input Range max Attribute

Definition and Usage

max Set or return the value of the max attribute of the slider control.

The HTML max attribute specifies the maximum value of the slider control.

Tip:The max attribute is usually used with min attribute Use together to create a valid value range.

Tip:To set or return the value of the min attribute, use min attribute.

See also:

HTML Reference Manual:HTML <input> max অ্যাট্রিবিউট

Example

Example 1

Get the maximum allowed value of the slider control:

var x = document.getElementById("myRange").max;

Try it yourself

Example 2

Change the maximum value:

document.getElementById("myRange").max = "90";

Try it yourself

Syntax

Return max attribute:

rangeObject.max

set max attribute:

rangeObject.max = number

অ্যাট্রিবিউট মান

মান বর্ণনা
number স্লাইডার কন্ট্রোলারের অনুমদিত সর্বমান নির্ধারণ করে

প্রযুক্তিগত বিবরণ

ফলাফল: শব্দবন্ধনী মান, যা সবচেয়ে বড় অনুমদিত মানকে দেখায়。

ব্রাউজার সমর্থন

সারণীতে উল্লিখিত সংখ্যা এই অ্যাট্রিবিউটটি সম্পূর্ণরূপে সমর্থনকারী প্রথম ব্রাউজার সংস্করণটি বলে।

চ্রোম এডজ ফায়ারফক্স স্যাফারি ওপেরা
চ্রোম এডজ ফায়ারফক্স স্যাফারি ওপেরা
সমর্থন 10.0 সমর্থন সমর্থন সমর্থন