selected

object selected extends Attr

If present, this Boolean attribute indicates that the option is initially selected. If the <code><option></code> element is the descendant of a <a title="The HTML <select> element represents a control that provides a menu of options:" href="/en-US/docs/Web/HTML/Element/select"><code><select></code></a> element whose <code><a href="/en-US/docs/Web/HTML/Element/select#attr-multiple">multiple</a></code> attribute is not set, only one single <code><option></code> of this <a title="The HTML <select> element represents a control that provides a menu of options:" href="/en-US/docs/Web/HTML/Element/select"><code><select></code></a> element may have the <code>selected</code> attribute.

trait Attr
class Object
trait Matchable
class Any

Type members

Classlikes

object tag extends TagElement

Inherited types

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

Value members

Concrete methods

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

Implicits

Implicits

@inline
implicit def boolToPairoptionApplied(attrObj: selected): AttrPair[tag]
@inline
implicit def boolToPairstarApplied(attrObj: selected): AttrPair[tag]