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.
(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`
(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`
(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.
(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`
(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`
(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.
(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`
(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`
(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`
(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
(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.
(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.
(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`
(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`
(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`
(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
(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`
(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`
(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`
(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`
(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`
(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
(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.
(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.
(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
(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`
(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.
(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.
(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.
(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.
(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
(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.
(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`
(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.
(validity this)Property.
A ValidityState reflecting the validity state that this control in.
Property. A ValidityState reflecting the validity state that this control in.
(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.
(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
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |