object disabled extends Attr
option - If this Boolean attribute is set, this option is not checkable. Often browsers grey out such control and it won't receive any browsing event, like mouse clicks or focus-related ones. If this attribute is not set, the element can still be disabled if one of its ancestors is a disabled <optgroup>
element.
textarea - This Boolean attribute indicates that the user cannot interact with the control. (If this attribute is not specified, the control inherits its setting from the containing element, for example <fieldset>
; if there is no containing element with the disabled
attribute set, then the control is enabled.)
menuitem - Boolean attribute which indicates that the command is not available in the current state. Note that disabled
is distinct from hidden
; the disabled
attribute is appropriate in any context where a change in circumstances might render the command relevant.
link - This attribute is used to disable a link relationship. In conjunction with scripting, this attribute could be used to turn on and off various style sheet relationships.
Note: While there is no disabled
attribute in the HTML standard, there is a disabled
attribute on the HTMLLinkElement
DOM object.
The use of disabled
as an HTML attribute is non-standard and only used by some browsers (W3 #27677). Do not use it. To achieve a similar effect, use one of the following techniques:
- If the disabled
attribute has been added directly to the element on the page, do not include the <link>
element instead;
- Set the disabled
property of the StyleSheet
DOM object via scripting.
keygen - This Boolean attribute indicates that the form control is not available for interaction.
fieldset - If this Boolean attribute is set, the form controls that are its descendants, except descendants of its first optional <legend>
element, are disabled, i.e., not editable. They won't receive any browsing events, like mouse clicks or focus-related ones. Often browsers display such controls as gray.
optgroup - If this Boolean attribute is set, none of the items in this option group is selectable. Often browsers grey out such control and it won't receive any browsing events, like mouse clicks or focus-related ones.
select - This Boolean attribute indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example fieldset
; if there is no containing element with the disabled
attribute set, then the control is enabled.
input -
This Boolean attribute indicates that the form control is not available for interaction. In particular, the click
event will not be dispatched on disabled controls. Also, a disabled control's value isn't submitted with the form.
Unlike other browsers, Firefox will by default persist the dynamic disabled state of an <input>
across page loads. Use the autocomplete
attribute to control this feature.
button -
This Boolean attribute indicates that the user cannot interact with the button. If this attribute is not specified, the button inherits its setting from the containing element, for example <fieldset>
; if there is no containing element with the disabled attribute set, then the button is enabled.
Firefox will, unlike other browsers, by default, persist the dynamic disabled state of a <button>
across page loads. Use the autocomplete
attribute to control this feature.
- Alphabetic
- By Inheritance
- disabled
- Attr
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type attrType = _disabled_attr.type
- Definition Classes
- disabled → Attr
- type supports[T <: Tag] = (AttrPair[attrType]) => AttrPair[core.Attr.supports.T.tagType]
- Definition Classes
- Attr
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def :=(v: Option[Boolean]): OptionalAttrPair[_disabled_attr.type]
- Annotations
- @inline()
- def :=(v: Boolean): AttrPair[_disabled_attr.type]
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- implicit def boolToPairbuttonApplied(attrObj: disabled.this.type): AttrPair[button.tag.type]
- Annotations
- @inline()
- implicit def boolToPairfieldsetApplied(attrObj: disabled.this.type): AttrPair[fieldset.tag.type]
- Annotations
- @inline()
- implicit def boolToPairinputApplied(attrObj: disabled.this.type): AttrPair[input.tag.type]
- Annotations
- @inline()
- implicit def boolToPairkeygenApplied(attrObj: disabled.this.type): AttrPair[keygen.tag.type]
- Annotations
- @inline()
- implicit def boolToPairlinkApplied(attrObj: disabled.this.type): AttrPair[link.tag.type]
- Annotations
- @inline()
- implicit def boolToPairmenuitemApplied(attrObj: disabled.this.type): AttrPair[menuitem.tag.type]
- Annotations
- @inline()
- implicit def boolToPairoptgroupApplied(attrObj: disabled.this.type): AttrPair[optgroup.tag.type]
- Annotations
- @inline()
- implicit def boolToPairoptionApplied(attrObj: disabled.this.type): AttrPair[option.tag.type]
- Annotations
- @inline()
- implicit def boolToPairselectApplied(attrObj: disabled.this.type): AttrPair[select.tag.type]
- Annotations
- @inline()
- implicit def boolToPairstarApplied(attrObj: disabled.this.type): AttrPair[*.tag.type]
- Annotations
- @inline()
- implicit def boolToPairtextareaApplied(attrObj: disabled.this.type): AttrPair[textarea.tag.type]
- Annotations
- @inline()
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- implicit object tag extends TagElement