Clear Up
SharpKit Reference

HtmlSelect Class

Denotes a list box or drop-down list.

Namespace: SharpKit.Html4

Constructors

Name Description
HtmlSelect()

Methods

Name Description
add(HtmlOption, HtmlOption) Adds an option element to the options collection of a select object.
add(HtmlOption) Adds an option element to the options collection of a select object.
add(HtmlOption, JsNumber) Adds an option element to the options collection of a select object.
remove(JsNumber) Removes an element from the collection.

Properties

Name Description
dataFld Sets or retrieves a field of a given data source, as specified by the dataSrc property, to bind to the specified object.
dataFormatAs Sets or retrieves the rendering format for the data supplied to the object. Possible values: text Default. Data is rendered as text. html Data is rendered as HTML. localized-text Microsoft Internet Explorer 5.01 and later versions. Data is rendered using the locale settings of the client machine.
dataSrc Sets or retrieves the source of the data for data binding.
form Retrieves a reference to the form that the object is embedded in.
length Sets or retrieves the number of objects in a collection.
multiple Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
name Sets or retrieves the name of the object.
options
selectedIndex Sets or retrieves the index of the selected option in a select object.
size Sets or retrieves the number of rows in the list box.
type Retrieves the type of select control based on the value of the MULTIPLE attribute.
value Sets or retrieves the value which is returned to the server when the form control is submitted.

Fields

Name Description
onchange Fires when the contents of the object or selection have changed.
© Copyright 2005-2011 SharpKit. All rights reserved.