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`
(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`
(form this)
Property.
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. 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.
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. 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`
(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.
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. 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`
(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.
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.dom.HTMLCollection
object with one entry per currently
option.
var selectedCollection = HTMLSelectElement.selectedOptions;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/selectedOptions
Property. 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.dom.HTMLCollection` object with one entry per currently option. `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-labels! this val)
Property.
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. 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`
(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`
(type this)
Property.
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. 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`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close