class documentation

``<select>`` element. You can get the name with ``.name``. ``.value`` will be the value of the selected option, unless this is a multi-select element (``<select multiple>``), in which case it will be a set-like object. In either case ``.value_options`` gives the possible values. The boolean attribute ``.multiple`` shows if this is a multi-select.

Method multiple.setter Undocumented
Method value.deleter Undocumented
Method value.setter Undocumented
Property multiple Boolean attribute: is there a ``multiple`` attribute on this element.
Property value Get/set the value of this select (the selected option).
Property value_options All the possible values this select can have (the ``value`` attribute of all the ``<option>`` elements.

Inherited from InputMixin:

Method __repr__ Undocumented
Method name.deleter Undocumented
Method name.setter Undocumented
Property name Get/set the name of the element

Inherited from HtmlMixin (via InputMixin, HtmlElement):

Method classes.setter Undocumented
Method cssselect Run the CSS expression on this element and its children, returning a list of the results.
Method drop_tag Remove the tag, but not its children or text. The children and text are merged into the parent.
Method drop_tree Removes this element from the tree, including its children and text. The tail text is joined to the previous element or parent.
Method find_class Find any elements with the given class name.
Method find_rel_links Find any links like ``<a rel="{rel}">...</a>``; returns a list of elements.
Method get_element_by_id Get the first element in a document with the given id. If none is found, return the default argument if provided or raise KeyError otherwise.
Method iterlinks Yield (element, attribute, link, pos), where attribute may be None (indicating the link is in the text). ``pos`` is the position where the link occurs; often 0, but sometimes something else in the case of links in stylesheets or style tags.
Method label.deleter Undocumented
Method label.setter Undocumented
Method make_links_absolute Make all links in the document absolute, given the ``base_url`` for the document (the full URL where the document came from), or if no ``base_url`` is given, then the ``.base_url`` of the document.
Method resolve_base_href Find any ``<base href>`` tag in the document, and apply its values to all links found in the document. Also remove the tag once it has been applied.
Method rewrite_links Rewrite all the links in the document. For each link ``link_repl_func(link)`` will be called, and the return value will replace the old link.
Method set set(self, key, value=None)
Method text_content Return the text content of the tag (and the text in any children).
Property base_url Returns the base URL, given when the page was parsed.
Property body Return the <body> element. Can be called from a child element to get the document's head.
Property classes A set-like wrapper around the 'class' attribute.
Property forms Return a list of all the forms
Property head Returns the <head> element. Can be called from a child element to get the document's head.
Property label Get or set any <label> element associated with this element.
@multiple.setter
def multiple(self, value): (source)

Undocumented

@value.deleter
def value(self): (source)

Undocumented

@value.setter
def value(self, value): (source)

Undocumented

Boolean attribute: is there a ``multiple`` attribute on this element.

Get/set the value of this select (the selected option). If this is a multi-select, this is a set-like object that represents all the selected options.

@property
value_options = (source)

All the possible values this select can have (the ``value`` attribute of all the ``<option>`` elements.