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;
Example 2
Change the maximum value:
document.getElementById("myRange").max = "90";
Syntax
Return max attribute:
rangeObject.max
set max attribute:
rangeObject.ماکس = نمبر
خصوصیت کی قیمتی
قیمتی | وصف |
---|---|
نمبر | اسکروول کنٹرول کو اجازت دینے والی اعلیٰ حد کا معیار طے کرتا ہے۔ |
تکنیکی تفصیلات
بازگشت: | قلمبندی کا رقمی کاروبار، اس کا اعلیٰ حد کا اشارہ کرتا ہے۔ |
---|
براوزر کی مدد
جداول میں دکھائی گئی تعداد کو پہلے اس کا پرائیومم کا استعمال کرنے والا براوزر کی نسلی تعداد کے طور پر دیا گیا ہے۔
کروم | ایج | فائرفاکس | سافری | آپرا |
---|---|---|---|---|
کروم | ایج | فائرفاکس | سافری | آپرا |
مدد | 10.0 | مدد | مدد | مدد |