OptionElement ClassC# API
Represents an HTML option element within an HTML form.
Inheritance Hierarchy

System Object
  Facilita.Web HtmlElement
    Facilita.Web OptionElement

Namespace: Facilita.Web
Assembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.5.77 (1.0.0.0)
Syntax

public class OptionElement : HtmlElement
Remarks

An HTML element is everything from the start tag to the end tag.

An OptionElement is used to define an available option in a drop-down list represented by a SelectElement.

e.g.

<select name="drink">
<option value="lemonade">Lemonade</option>
<option value="coke">Coke</option>
<option value="pepsi">Pepsi</option>
<option value="tango">Tango</option>
</select>

When the containing Form is sent to the web server, a name/value pair will be sent which uses the name of the SelectElement and the value of the currently selected OptionElement.

See Also