WebKitDOMGTK+ Reference Manual: WebKitDOMHTMLSelectElement

## WebKitDOMHTMLSelectElement WebKitDOMHTMLSelectElement |

## Synopsis

                        WebKitDOMHTMLSelectElement;
    WebKitDOMNode *     webkit_dom_html_select_element_item (WebKitDOMHTMLSelectElement *self,
                                                             gulong index);
    WebKitDOMNode *     webkit_dom_html_select_element_named_item
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             const gchar *name);
    void                webkit_dom_html_select_element_add  (WebKitDOMHTMLSelectElement *self,
                                                             WebKitDOMHTMLElement *element,
                                                             WebKitDOMHTMLElement *before,
                                                             GError **error);
    void                webkit_dom_html_select_element_remove
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             glong index);
    gboolean            webkit_dom_html_select_element_check_validity
                                                            (WebKitDOMHTMLSelectElement *self);
    void                webkit_dom_html_select_element_set_custom_validity
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             const gchar *error);
    gboolean            webkit_dom_html_select_element_get_autofocus
                                                            (WebKitDOMHTMLSelectElement *self);
    void                webkit_dom_html_select_element_set_autofocus
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             gboolean value);
    gboolean            webkit_dom_html_select_element_get_disabled
                                                            (WebKitDOMHTMLSelectElement *self);
    void                webkit_dom_html_select_element_set_disabled
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             gboolean value);
    WebKitDOMHTMLFormElement * webkit_dom_html_select_element_get_form
                                                            (WebKitDOMHTMLSelectElement *self);
    gboolean            webkit_dom_html_select_element_get_multiple
                                                            (WebKitDOMHTMLSelectElement *self);
    void                webkit_dom_html_select_element_set_multiple
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             gboolean value);
    gchar *             webkit_dom_html_select_element_get_name
                                                            (WebKitDOMHTMLSelectElement *self);
    void                webkit_dom_html_select_element_set_name
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             const gchar *value);
    gboolean            webkit_dom_html_select_element_get_required
                                                            (WebKitDOMHTMLSelectElement *self);
    void                webkit_dom_html_select_element_set_required
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             gboolean value);
    glong               webkit_dom_html_select_element_get_size
                                                            (WebKitDOMHTMLSelectElement *self);
    void                webkit_dom_html_select_element_set_size
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             glong value);
    WebKitDOMHTMLOptionsCollection * webkit_dom_html_select_element_get_options
                                                            (WebKitDOMHTMLSelectElement *self);
    gulong              webkit_dom_html_select_element_get_length
                                                            (WebKitDOMHTMLSelectElement *self);
    void                webkit_dom_html_select_element_set_length
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             gulong value,
                                                             GError **error);
    WebKitDOMHTMLCollection * webkit_dom_html_select_element_get_selected_options
                                                            (WebKitDOMHTMLSelectElement *self);
    glong               webkit_dom_html_select_element_get_selected_index
                                                            (WebKitDOMHTMLSelectElement *self);
    void                webkit_dom_html_select_element_set_selected_index
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             glong value);
    gchar *             webkit_dom_html_select_element_get_value
                                                            (WebKitDOMHTMLSelectElement *self);
    void                webkit_dom_html_select_element_set_value
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             const gchar *value);
    gboolean            webkit_dom_html_select_element_get_will_validate
                                                            (WebKitDOMHTMLSelectElement *self);
    WebKitDOMValidityState * webkit_dom_html_select_element_get_validity
                                                            (WebKitDOMHTMLSelectElement *self);
    gchar *             webkit_dom_html_select_element_get_validation_message
                                                            (WebKitDOMHTMLSelectElement *self);
    WebKitDOMNodeList * webkit_dom_html_select_element_get_labels
                                                            (WebKitDOMHTMLSelectElement *self);

## Object Hierarchy

      GObject
       +----WebKitDOMObject
             +----WebKitDOMNode
                   +----WebKitDOMElement
                         +----WebKitDOMHTMLElement
                               +----WebKitDOMHTMLSelectElement

## Implemented Interfaces

WebKitDOMHTMLSelectElement implements WebKitDOMEventTarget.

## Properties

      "autofocus"                gboolean              : Read / Write
      "disabled"                 gboolean              : Read / Write
      "form"                     WebKitDOMHTMLFormElement*  : Read
      "labels"                   WebKitDOMNodeList*    : Read
      "length"                   gulong                : Read / Write
      "multiple"                 gboolean              : Read / Write
      "name"                     gchar*                : Read / Write
      "options"                  WebKitDOMHTMLOptionsCollection*  : Read
      "required"                 gboolean              : Read / Write
      "selected-index"           glong                 : Read / Write
      "selected-options"         WebKitDOMHTMLCollection*  : Read
      "size"                     glong                 : Read / Write
      "type"                     gchar*                : Read
      "validation-message"       gchar*                : Read
      "validity"                 WebKitDOMValidityState*  : Read
      "value"                    gchar*                : Read / Write
      "will-validate"            gboolean              : Read

## Description

## Details

### WebKitDOMHTMLSelectElement

    typedef struct _WebKitDOMHTMLSelectElement WebKitDOMHTMLSelectElement;

### webkit_dom_html_select_element_item ()

    WebKitDOMNode *     webkit_dom_html_select_element_item (WebKitDOMHTMLSelectElement *self,
                                                             gulong index);

`self` : | A WebKitDOMHTMLSelectElement
`index` : | A gulong
Returns : | A WebKitDOMNode. [transfer none]

### webkit_dom_html_select_element_named_item ()

    WebKitDOMNode *     webkit_dom_html_select_element_named_item
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             const gchar *name);

`self` : | A WebKitDOMHTMLSelectElement
`name` : | A gchar
Returns : | A WebKitDOMNode. [transfer none]

### webkit_dom_html_select_element_add ()

    void                webkit_dom_html_select_element_add  (WebKitDOMHTMLSelectElement *self,
                                                             WebKitDOMHTMLElement *element,
                                                             WebKitDOMHTMLElement *before,
                                                             GError **error);

`self` : | A WebKitDOMHTMLSelectElement
`element` : | A WebKitDOMHTMLElement
`before` : | A WebKitDOMHTMLElement
`error` : | GError

### webkit_dom_html_select_element_remove ()

    void                webkit_dom_html_select_element_remove
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             glong index);

`self` : | A WebKitDOMHTMLSelectElement
`index` : | A glong

### webkit_dom_html_select_element_check_validity ()

    gboolean            webkit_dom_html_select_element_check_validity
                                                            (WebKitDOMHTMLSelectElement *self);

`self` : | A WebKitDOMHTMLSelectElement
Returns : | A gboolean

### webkit_dom_html_select_element_set_custom_validity ()

    void                webkit_dom_html_select_element_set_custom_validity
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             const gchar *error);

`self` : | A WebKitDOMHTMLSelectElement
`error` : | A gchar

### webkit_dom_html_select_element_get_autofocus ()

    gboolean            webkit_dom_html_select_element_get_autofocus
                                                            (WebKitDOMHTMLSelectElement *self);

`self` : | A WebKitDOMHTMLSelectElement
Returns : | A gboolean

### webkit_dom_html_select_element_set_autofocus ()

    void                webkit_dom_html_select_element_set_autofocus
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             gboolean value);

`self` : | A WebKitDOMHTMLSelectElement
`value` : | A gboolean

### webkit_dom_html_select_element_get_disabled ()

    gboolean            webkit_dom_html_select_element_get_disabled
                                                            (WebKitDOMHTMLSelectElement *self);

`self` : | A WebKitDOMHTMLSelectElement
Returns : | A gboolean

### webkit_dom_html_select_element_set_disabled ()

    void                webkit_dom_html_select_element_set_disabled
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             gboolean value);

`self` : | A WebKitDOMHTMLSelectElement
`value` : | A gboolean

### webkit_dom_html_select_element_get_form ()

    WebKitDOMHTMLFormElement * webkit_dom_html_select_element_get_form
                                                            (WebKitDOMHTMLSelectElement *self);

`self` : | A WebKitDOMHTMLSelectElement
Returns : | A WebKitDOMHTMLFormElement. [transfer none]

### webkit_dom_html_select_element_get_multiple ()

    gboolean            webkit_dom_html_select_element_get_multiple
                                                            (WebKitDOMHTMLSelectElement *self);

`self` : | A WebKitDOMHTMLSelectElement
Returns : | A gboolean

### webkit_dom_html_select_element_set_multiple ()

    void                webkit_dom_html_select_element_set_multiple
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             gboolean value);

`self` : | A WebKitDOMHTMLSelectElement
`value` : | A gboolean

### webkit_dom_html_select_element_get_name ()

    gchar *             webkit_dom_html_select_element_get_name
                                                            (WebKitDOMHTMLSelectElement *self);

`self` : | A WebKitDOMHTMLSelectElement
Returns : | A gchar

### webkit_dom_html_select_element_set_name ()

    void                webkit_dom_html_select_element_set_name
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             const gchar *value);

`self` : | A WebKitDOMHTMLSelectElement
`value` : | A gchar

### webkit_dom_html_select_element_get_required ()

    gboolean            webkit_dom_html_select_element_get_required
                                                            (WebKitDOMHTMLSelectElement *self);

`self` : | A WebKitDOMHTMLSelectElement
Returns : | A gboolean

### webkit_dom_html_select_element_set_required ()

    void                webkit_dom_html_select_element_set_required
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             gboolean value);

`self` : | A WebKitDOMHTMLSelectElement
`value` : | A gboolean

### webkit_dom_html_select_element_get_size ()

    glong               webkit_dom_html_select_element_get_size
                                                            (WebKitDOMHTMLSelectElement *self);

`self` : | A WebKitDOMHTMLSelectElement
Returns : | A glong

### webkit_dom_html_select_element_set_size ()

    void                webkit_dom_html_select_element_set_size
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             glong value);

`self` : | A WebKitDOMHTMLSelectElement
`value` : | A glong

### webkit_dom_html_select_element_get_options ()

    WebKitDOMHTMLOptionsCollection * webkit_dom_html_select_element_get_options
                                                            (WebKitDOMHTMLSelectElement *self);

`self` : | A WebKitDOMHTMLSelectElement
Returns : | A WebKitDOMHTMLOptionsCollection. [transfer none]

### webkit_dom_html_select_element_get_length ()

    gulong              webkit_dom_html_select_element_get_length
                                                            (WebKitDOMHTMLSelectElement *self);

`self` : | A WebKitDOMHTMLSelectElement
Returns : | A gulong

### webkit_dom_html_select_element_set_length ()

    void                webkit_dom_html_select_element_set_length
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             gulong value,
                                                             GError **error);

`self` : | A WebKitDOMHTMLSelectElement
`value` : | A gulong
`error` : | GError

### webkit_dom_html_select_element_get_selected_options ()

    WebKitDOMHTMLCollection * webkit_dom_html_select_element_get_selected_options
                                                            (WebKitDOMHTMLSelectElement *self);

`self` : | A WebKitDOMHTMLSelectElement
Returns : | A WebKitDOMHTMLCollection. [transfer none]

### webkit_dom_html_select_element_get_selected_index ()

    glong               webkit_dom_html_select_element_get_selected_index
                                                            (WebKitDOMHTMLSelectElement *self);

`self` : | A WebKitDOMHTMLSelectElement
Returns : | A glong

### webkit_dom_html_select_element_set_selected_index ()

    void                webkit_dom_html_select_element_set_selected_index
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             glong value);

`self` : | A WebKitDOMHTMLSelectElement
`value` : | A glong

### webkit_dom_html_select_element_get_value ()

    gchar *             webkit_dom_html_select_element_get_value
                                                            (WebKitDOMHTMLSelectElement *self);

`self` : | A WebKitDOMHTMLSelectElement
Returns : | A gchar

### webkit_dom_html_select_element_set_value ()

    void                webkit_dom_html_select_element_set_value
                                                            (WebKitDOMHTMLSelectElement *self,
                                                             const gchar *value);

`self` : | A WebKitDOMHTMLSelectElement
`value` : | A gchar

### webkit_dom_html_select_element_get_will_validate ()

    gboolean            webkit_dom_html_select_element_get_will_validate
                                                            (WebKitDOMHTMLSelectElement *self);

`self` : | A WebKitDOMHTMLSelectElement
Returns : | A gboolean

### webkit_dom_html_select_element_get_validity ()

    WebKitDOMValidityState * webkit_dom_html_select_element_get_validity
                                                            (WebKitDOMHTMLSelectElement *self);

`self` : | A WebKitDOMHTMLSelectElement
Returns : | A WebKitDOMValidityState. [transfer none]

### webkit_dom_html_select_element_get_validation_message ()

    gchar *             webkit_dom_html_select_element_get_validation_message
                                                            (WebKitDOMHTMLSelectElement *self);

`self` : | A WebKitDOMHTMLSelectElement
Returns : | A gchar

### webkit_dom_html_select_element_get_labels ()

    WebKitDOMNodeList * webkit_dom_html_select_element_get_labels
                                                            (WebKitDOMHTMLSelectElement *self);

`self` : | A WebKitDOMHTMLSelectElement
Returns : | A WebKitDOMNodeList. [transfer none]

## Property Details

### The `"autofocus"` property

      "autofocus"                gboolean              : Read / Write

read-only gboolean HTMLSelectElement:autofocus.

Default value: FALSE

### The `"disabled"` property

      "disabled"                 gboolean              : Read / Write

read-only gboolean HTMLSelectElement:disabled.

Default value: FALSE

### The `"form"` property

      "form"                     WebKitDOMHTMLFormElement*  : Read

read-only WebKitDOMHTMLFormElement* HTMLSelectElement:form.

### The `"labels"` property

      "labels"                   WebKitDOMNodeList*    : Read

read-only WebKitDOMNodeList* HTMLSelectElement:labels.

### The `"length"` property

      "length"                   gulong                : Read / Write

read-only gulong HTMLSelectElement:length.

### The `"multiple"` property

      "multiple"                 gboolean              : Read / Write

read-only gboolean HTMLSelectElement:multiple.

Default value: FALSE

### The `"name"` property

      "name"                     gchar*                : Read / Write

read-only gchar* HTMLSelectElement:name.

Default value: ""

### The `"options"` property

      "options"                  WebKitDOMHTMLOptionsCollection*  : Read

read-only WebKitDOMHTMLOptionsCollection* HTMLSelectElement:options.

### The `"required"` property

      "required"                 gboolean              : Read / Write

read-only gboolean HTMLSelectElement:required.

Default value: FALSE

### The `"selected-index"` property

      "selected-index"           glong                 : Read / Write

read-only glong HTMLSelectElement:selected-index.

Default value: 0

### The `"selected-options"` property

      "selected-options"         WebKitDOMHTMLCollection*  : Read

read-only WebKitDOMHTMLCollection* HTMLSelectElement:selected-options.

### The `"size"` property

      "size"                     glong                 : Read / Write

read-only glong HTMLSelectElement:size.

Default value: 0

### The `"type"` property

      "type"                     gchar*                : Read

read-only gchar* HTMLSelectElement:type.

Default value: ""

### The `"validation-message"` property

      "validation-message"       gchar*                : Read

read-only gchar* HTMLSelectElement:validation-message.

Default value: ""

### The `"validity"` property

      "validity"                 WebKitDOMValidityState*  : Read

read-only WebKitDOMValidityState* HTMLSelectElement:validity.

### The `"value"` property

      "value"                    gchar*                : Read / Write

read-only gchar* HTMLSelectElement:value.

Default value: ""

### The `"will-validate"` property

      "will-validate"            gboolean              : Read

read-only gboolean HTMLSelectElement:will-validate.

Default value: FALSE