Liking cljdoc? Tell your friends :D

web.dom.HTMLSelectElement

The HTMLSelectElement interface represents a <select> HTML These elements also share all of the properties and methods of HTML elements via the web.dom.HTMLElement interface.

The HTMLSelectElement interface represents a `<select>` HTML
These elements also share all of the properties and methods of
HTML elements via the `web.dom.HTMLElement` interface.
raw docstring

addcljs

(add this & args)

Method.

The HTMLSelectElement.add() method adds an element to the collection option elements for this select element.

collection.add(item[, before]);

See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add

Method.

The HTMLSelectElement.add() method adds an element to the collection
option elements for this select element.

`collection.add(item[, before]);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add`
sourceraw docstring

autofocuscljs

(autofocus this)

Property.

The HTMLSelectElement.autofocus property is a js.Boolean that the autofocus HTML attribute, which indicates whether the associated element will get input focus when the page loads, unless the overrides it.

See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autofocus

Property.

The HTMLSelectElement.autofocus property is a `js.Boolean` that
the autofocus HTML attribute, which indicates whether the associated
element will get input focus when the page loads, unless the
overrides it.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autofocus`
sourceraw docstring

blurcljs

(blur this & args)

Method.

Removes input focus from this element. This method is now implemented HTMLElement.

Method.

Removes input focus from this element. This method is now implemented
HTMLElement.
sourceraw docstring

check-validitycljs

(check-validity this)

Method.

The HTMLSelectElement.checkValidity() method checks whether the has any constraints and whether it satisfies them. If the element its constraints, the browser fires a cancelable invalid event the element, and then returns false.

var result = selectElt.checkValidity();

See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/checkValidity

Method.

The HTMLSelectElement.checkValidity() method checks whether the
has any constraints and whether it satisfies them. If the element
its constraints, the browser fires a cancelable invalid event
the element, and then returns false.

`var result = selectElt.checkValidity();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/checkValidity`
sourceraw docstring

disabledcljs

(disabled this)

Property.

The HTMLSelectElement.disabled Is a Boolean that reflects the HTML attribute, which indicates whether the control is disabled. it is disabled, it does not accept clicks. A disabled element unusable and un-clickable.

`Edit

aSelectElement.disabled = aBool;`

See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/disabled

Property.

The HTMLSelectElement.disabled Is a Boolean that reflects the
HTML attribute, which indicates whether the control is disabled.
it is disabled, it does not accept clicks. A disabled element
unusable and un-clickable.

`Edit



aSelectElement.disabled = aBool;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/disabled`
sourceraw docstring

focuscljs

(focus this & args)

Method.

Gives input focus to this element. This method is now implemented HTMLElement.

Method.

Gives input focus to this element. This method is now implemented
HTMLElement.
sourceraw docstring

formcljs

(form this)

Property.

[Read Only]

The HTMLSelectElement.form read-only property returns a web.dom.HTMLFormElement the form that this element is associated with. If the element not associated with of a <form> element, then it returns null.

`Edit

aForm = aSelectElement.form.selectname;`

See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/form

Property.

[Read Only]

The HTMLSelectElement.form read-only property returns a `web.dom.HTMLFormElement`
the form that this element is associated with. If the element
not associated with of a `<form>` element, then it returns null.

`Edit



aForm = aSelectElement.form.selectname;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/form`
sourceraw docstring

itemcljs

(item this & args)

Method.

The HTMLSelectElement.item() method returns the web.Element to the web.dom.HTMLOptionElement whose position in the options corresponds to the index given in the parameter, or null if there none.

var item = collection.item(index); var item = collection[index];

See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/item

Method.

The HTMLSelectElement.item() method returns the `web.Element`
to the `web.dom.HTMLOptionElement` whose position in the options
corresponds to the index given in the parameter, or null if there
none.

`var item = collection.item(index);
var item = collection[index];`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/item`
sourceraw docstring

labelscljs

(labels this)

Property.

[Read Only]

The HTMLSelectElement.labels read-only property returns a web.NodeList the <label> elements associated with the <select> element.

var labelElements = select.labels;

See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/labels

Property.

[Read Only]

The HTMLSelectElement.labels read-only property returns a `web.NodeList`
the `<label>` elements associated with the `<select>` element.

`var labelElements = select.labels;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/labels`
sourceraw docstring

lengthcljs

(length this)

Property.

An unsigned long The number of <option> elements in this select

Property.

An unsigned long The number of <option> elements in this select
sourceraw docstring

multiplecljs

(multiple this)

Property.

A Boolean reflecting the multiple HTML attribute, which indicates multiple items can be selected.

Property.

A Boolean reflecting the multiple HTML attribute, which indicates
multiple items can be selected.
sourceraw docstring

namecljs

(name this)

Property.

A DOMString reflecting the name HTML attribute, containing the of this control used by servers and DOM search functions.

Property.

A DOMString reflecting the name HTML attribute, containing the
of this control used by servers and DOM search functions.
sourceraw docstring

named-itemcljs

(named-item this & args)

Method.

The HTMLSelectElement.namedItem() method returns the web.dom.HTMLOptionElement to the web.dom.HTMLOptionElement whose name or id match the name, or null if no option matches.

var item = collection.namedItem(str); var item = collection[str];

See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/namedItem

Method.

The HTMLSelectElement.namedItem() method returns the `web.dom.HTMLOptionElement`
to the `web.dom.HTMLOptionElement` whose name or id match the
name, or null if no option matches.

`var item = collection.namedItem(str);
var item = collection[str];`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/namedItem`
sourceraw docstring

optionscljs

(options this)

Property.

[Read Only]

The HTMLSelectElement.options read-only property returns a web.dom.HTMLOptionsCollection the <option> elements contained by the <select> element.

var options = select.options;

See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/options

Property.

[Read Only]

The HTMLSelectElement.options read-only property returns a `web.dom.HTMLOptionsCollection`
the `<option>` elements contained by the `<select>` element.

`var options = select.options;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/options`
sourceraw docstring

removecljs

(remove this index)

Method.

The HTMLSelectElement.remove() method removes the element at specified index from the options collection for this select element.

collection.remove(index);

See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/remove

Method.

The HTMLSelectElement.remove() method removes the element at
specified index from the options collection for this select element.

`collection.remove(index);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/remove`
sourceraw docstring

requiredcljs

(required this)

Property.

A Boolean reflecting the required HTML attribute, which indicates the user is required to select a value before submitting the

Property.

A Boolean reflecting the required HTML attribute, which indicates
the user is required to select a value before submitting the
sourceraw docstring

selected-indexcljs

(selected-index this)

Property.

The HTMLSelectElement.selectedIndex is a long that reflects the of the first or last selected <option> element, depending on value of multiple. The value -1 indicates that no element is

var index = selectElem.selectedIndex; selectElem.selectedIndex = index;

See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/selectedIndex

Property.

The HTMLSelectElement.selectedIndex is a long that reflects the
of the first or last selected `<option>` element, depending on
value of multiple. The value -1 indicates that no element is

`var index = selectElem.selectedIndex;
selectElem.selectedIndex = index;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/selectedIndex`
sourceraw docstring

selected-optionscljs

(selected-options this)

Property.

[Read Only]

The read-only web.dom.HTMLSelectElement property selectedOptions a list of the <option> elements contained within the <select> that are currently selected. The list of selected options is web.HTMLCollection object with one entry per currently selected

var selectedCollection = HTMLSelectElement.selectedOptions;

See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/selectedOptions

Property.

[Read Only]

The read-only `web.dom.HTMLSelectElement` property selectedOptions
a list of the `<option>` elements contained within the `<select>`
that are currently selected. The list of selected options is
`web.HTMLCollection` object with one entry per currently selected

`var selectedCollection = HTMLSelectElement.selectedOptions;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/selectedOptions`
sourceraw docstring

set-autofocus!cljs

(set-autofocus! this val)

Property.

The HTMLSelectElement.autofocus property is a js.Boolean that the autofocus HTML attribute, which indicates whether the associated element will get input focus when the page loads, unless the overrides it.

See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autofocus

Property.

The HTMLSelectElement.autofocus property is a `js.Boolean` that
the autofocus HTML attribute, which indicates whether the associated
element will get input focus when the page loads, unless the
overrides it.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autofocus`
sourceraw docstring

set-custom-validitycljs

(set-custom-validity this string)

Method.

The HTMLSelectElement.setCustomValidity() method sets the custom message for the selection element to the specified message. Use empty string to indicate that the element does not have a custom error.

selectElt.setCustomValidity(string);

See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/setCustomValidity

Method.

The HTMLSelectElement.setCustomValidity() method sets the custom
message for the selection element to the specified message. Use
empty string to indicate that the element does not have a custom
error.

`selectElt.setCustomValidity(string);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/setCustomValidity`
sourceraw docstring

set-disabled!cljs

(set-disabled! this val)

Property.

The HTMLSelectElement.disabled Is a Boolean that reflects the HTML attribute, which indicates whether the control is disabled. it is disabled, it does not accept clicks. A disabled element unusable and un-clickable.

`Edit

aSelectElement.disabled = aBool;`

See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/disabled

Property.

The HTMLSelectElement.disabled Is a Boolean that reflects the
HTML attribute, which indicates whether the control is disabled.
it is disabled, it does not accept clicks. A disabled element
unusable and un-clickable.

`Edit



aSelectElement.disabled = aBool;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/disabled`
sourceraw docstring

set-length!cljs

(set-length! this val)

Property.

An unsigned long The number of <option> elements in this select

Property.

An unsigned long The number of <option> elements in this select
sourceraw docstring

set-multiple!cljs

(set-multiple! this val)

Property.

A Boolean reflecting the multiple HTML attribute, which indicates multiple items can be selected.

Property.

A Boolean reflecting the multiple HTML attribute, which indicates
multiple items can be selected.
sourceraw docstring

set-name!cljs

(set-name! this val)

Property.

A DOMString reflecting the name HTML attribute, containing the of this control used by servers and DOM search functions.

Property.

A DOMString reflecting the name HTML attribute, containing the
of this control used by servers and DOM search functions.
sourceraw docstring

set-required!cljs

(set-required! this val)

Property.

A Boolean reflecting the required HTML attribute, which indicates the user is required to select a value before submitting the

Property.

A Boolean reflecting the required HTML attribute, which indicates
the user is required to select a value before submitting the
sourceraw docstring

set-selected-index!cljs

(set-selected-index! this val)

Property.

The HTMLSelectElement.selectedIndex is a long that reflects the of the first or last selected <option> element, depending on value of multiple. The value -1 indicates that no element is

var index = selectElem.selectedIndex; selectElem.selectedIndex = index;

See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/selectedIndex

Property.

The HTMLSelectElement.selectedIndex is a long that reflects the
of the first or last selected `<option>` element, depending on
value of multiple. The value -1 indicates that no element is

`var index = selectElem.selectedIndex;
selectElem.selectedIndex = index;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/selectedIndex`
sourceraw docstring

set-size!cljs

(set-size! this val)

Property.

A long reflecting the size HTML attribute, which contains the of visible items in the control. The default is 1, unless multiple true, in which case it is 4.

Property.

A long reflecting the size HTML attribute, which contains the
of visible items in the control. The default is 1, unless multiple
true, in which case it is 4.
sourceraw docstring

set-validation-message!cljs

(set-validation-message! this val)

Property.

A DOMString representing a localized message that describes the constraints that the control does not satisfy (if any). This is the empty string if the control is not a candidate for constraint (willValidate is false), or it satisfies its constraints.

Property.

A DOMString representing a localized message that describes the
constraints that the control does not satisfy (if any). This
is the empty string if the control is not a candidate for constraint
(willValidate is false), or it satisfies its constraints.
sourceraw docstring

set-validity!cljs

(set-validity! this val)

Property.

A ValidityState reflecting the validity state that this control in.

Property.

A ValidityState reflecting the validity state that this control
in.
sourceraw docstring

set-value!cljs

(set-value! this val)

Property.

A DOMString reflecting the value of the form control. Returns value property of the first selected option element if there one, otherwise the empty string.

Property.

A DOMString reflecting the value of the form control. Returns
value property of the first selected option element if there
one, otherwise the empty string.
sourceraw docstring

set-will-validate!cljs

(set-will-validate! this val)

Property.

A Boolean that indicates whether the button is a candidate for validation. It is false if any conditions bar it from constraint

Property.

A Boolean that indicates whether the button is a candidate for
validation. It is false if any conditions bar it from constraint
sourceraw docstring

sizecljs

(size this)

Property.

A long reflecting the size HTML attribute, which contains the of visible items in the control. The default is 1, unless multiple true, in which case it is 4.

Property.

A long reflecting the size HTML attribute, which contains the
of visible items in the control. The default is 1, unless multiple
true, in which case it is 4.
sourceraw docstring

typecljs

(type this)

Property.

[Read Only]

The HTMLSelectElement.type read-only property returns the form type.

`var str = selectElt.type;

The possible values are:

"select-multiple" if multiple values can be selected. "select-one" if only one value can be selected.`

See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/type

Property.

[Read Only]

The HTMLSelectElement.type read-only property returns the form
type.

`var str = selectElt.type;

The possible values are:


\"select-multiple\" if multiple values can be selected.
\"select-one\" if only one value can be selected.`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/type`
sourceraw docstring

validation-messagecljs

(validation-message this)

Property.

A DOMString representing a localized message that describes the constraints that the control does not satisfy (if any). This is the empty string if the control is not a candidate for constraint (willValidate is false), or it satisfies its constraints.

Property.

A DOMString representing a localized message that describes the
constraints that the control does not satisfy (if any). This
is the empty string if the control is not a candidate for constraint
(willValidate is false), or it satisfies its constraints.
sourceraw docstring

validitycljs

(validity this)

Property.

A ValidityState reflecting the validity state that this control in.

Property.

A ValidityState reflecting the validity state that this control
in.
sourceraw docstring

valuecljs

(value this)

Property.

A DOMString reflecting the value of the form control. Returns value property of the first selected option element if there one, otherwise the empty string.

Property.

A DOMString reflecting the value of the form control. Returns
value property of the first selected option element if there
one, otherwise the empty string.
sourceraw docstring

will-validatecljs

(will-validate this)

Property.

A Boolean that indicates whether the button is a candidate for validation. It is false if any conditions bar it from constraint

Property.

A Boolean that indicates whether the button is a candidate for
validation. It is false if any conditions bar it from constraint
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close