Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for HTMLOptionElement.
Developer library 6
Firefox 13 release notes for developers
or `globalStorage` has been removed. - The new `DOMRequest` interface, used for reporting the status and result of background operations, has been added. - The HTMLOptionElement.index() method now returns `0` instead of the incorrect `-1` when the option is inside a datalist HTML element. - DOMException as defined in DOM Level 4 has been implemented. - The `FileError` interface has been removed in favor of the DOMErr
` ` HTML option element
<th scope="row">Permitted ARIA roles</th> <td>No <code>role</code> permitted</td> </tr> <tr> <th scope="row">DOM interface</th> <td>HTMLOptionElement</td> </tr> </tbody> </table> ## Specifications ## Browser compatibility ## See also - Other form-related elements: form, legend, label, button, select, datalist, optgroup, fieldset, textarea, input, output, progress and meter. -
HTMLOptionElement
HTML DOM The **`HTMLOptionElement`** interface represents option elements and inherits all properties and methods of the HTMLElement interface. ## Constructor - Option() - : Returns a newly created `HTMLOptionElement` object. It has four parameters: the text to display, `text`, the value associated, `value`, the value of `defaultSelected`, and the value of `selected`. The last three parameters are optional. #
HTMLOptionElement: selected property
HTML DOM The **`selected`** property of the HTMLOptionElement interface specifies the current selectedness of the element; that is, whether the option is selected or not. The presence of the HTML [`selected`](/docs/Web/HTML/Reference/Elements/option#selected) attribute indicates the option is selected by default. It does not indicate whether this option is currently selected: if the option's state changes, the `sel
HTMLOptionElement: form property
HTML DOM The **`form`** read-only property of the HTMLOptionElement interface returns an HTMLFormElement object that owns the HTMLSelectElement associated with this option, or `null` if this option is not associated with a select owned by a form. ## Value An HTMLFormElement or `null`. ## Specifications ## Browser compatibility ## See also - HTMLOptionElement - HTMLSelectElement.form - HTMLFormElement - opt
HTMLOptionElement: value property
HTML DOM The **`value`** property of the HTMLOptionElement interface represents the value of the option element as a string, or the empty string if no value is set. It reflects the element's [`value`](/docs/Web/HTML/Reference/Elements/option#value) attribute, if present. Otherwise, it returns or sets the contents of the element, similar to the textContent property. ## Value A string containing the `value` attribut