checked

object checked extends Attr

menuitem - Boolean attribute which indicates whether the command is selected. May only be used when the <code>type</code> attribute is <code>checkbox</code> or <code>radio</code>. input -

When the value of the <strong>type</strong> attribute is <code>radio</code> or <code>checkbox</code>, the presence of this Boolean attribute indicates that the control is selected by default, otherwise it is ignored.

Unlike other browsers, Firefox will by default <a class="external" href="https://stackoverflow.com/questions/5985839/bug-with-firefox-disabled-attribute-of-input-not-resetting-when-refreshing">persist the dynamic checked state</a> of an <code><input></code> across page loads. Use the <code><a href="/en-US/docs/Web/HTML/Element/input#attr-autocomplete">autocomplete</a></code> attribute to control this feature.

trait Attr
class Object
trait Matchable
class Any

Type members

Classlikes

object tag extends TagElement

Types

Inherited types

type supports[T <: Tag] = AttrPair[attrType] => AttrPair[tagType]
Inherited from
Attr

Value members

Concrete methods

@inline
def :=(v: Boolean): AttrPair[_checked_attr]
@inline
def :=(v: Option[Boolean]): OptionalAttrPair[_checked_attr]

Implicits

Implicits

@inline
implicit def boolToPairinputApplied(attrObj: checked): AttrPair[tag]
@inline
implicit def boolToPairmenuitemApplied(attrObj: checked): AttrPair[tag]
@inline
implicit def boolToPairstarApplied(attrObj: checked): AttrPair[tag]