HTML_Option Class

This class provides the API for HTML option elements which provide the contents of selection elements. This class inherits the HTML_Object Class. (See also, HTML_Select Class.)

Boolean HTML_Option.defaultSelected

This read-only property holds true if this option is selected by default; otherwise it holds false.

int HTML_Option.index

This property holds the 0-based index position of this option in the selection element.

Boolean HTML_Option.selected

This read-only property holds true if this option is selected; otherwise it holds false.

String HTML_Option.text

This property holds this option's text as a string.

String HTML_Option.value

This property holds this option's value as a string.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.

Search Results