Input Time disabled attribute

Definition and Usage

disabled Property sets or returns whether the time field should be disabled.

Disabled elements are not available and cannot be clicked. By default, disabled elements are usually displayed in gray in the browser.

This property reflects the HTML disabled attribute.

See also:

HTML Reference Manual:HTML <input> disabled کا نمائش

Example

Example 1

Disable the time field:

document.getElementById("myTime").disabled = true;

Try it yourself

Example 2

Check if the time field is disabled:

var x = document.getElementById("myTime").disabled;

Try it yourself

Example 3

Disable and enable the time field:

function disableBtn() {
    document.getElementById("myTime").disabled = true;
}
function undisableBtn() {
    document.getElementById("myTime").disabled = false;
}

Try it yourself

Syntax

Return disabled attribute:

timeObject.disabled

Set disabled attribute:

timeObject.disabled = true|false

Attribute value

Value Description
true|false

Define whether the time field should be disabled.

  • true - The time field is disabled
  • false - Default. The time field is not disabled

تکنیکی تفصیلات

واپس لایا جائیگا: بولین والی، اگر وقت میدان غیر استعمال شدہ ہے تو واپس لایا جائے گا true، درغیر این، واپس لایا جائے گا false.

براوزر کا حمایتی

جداول میں نمبر، پہلے اس کا حمایتی براوزر کی نسخہ کا ذکر کیا گیا ہے جس میں اس کا مکمل حمایتی براوزر کا ذکر کیا گیا ہے۔

کروم ایج فائر فاکس سافری اپرا
کروم ایج فائر فاکس سافری اپرا
پشتیبندی 10.0 پشتیبندی پشتیبندی پشتیبندی

توجہ:<input type="time"> علامت Firefox میں کوئی وقت میدان کی شکل میں نہیں دکھائی جاتی ہے。