A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/form/select/ below:

Website Navigation


JavaScript Form - Select | DHTMLX Suite 9 Docs

Select

An advanced select box that provides a set of options to choose from.

Related sample: Form. All controls

Related sample: Form. Select

Adding Select​

You can easily add a Select control during initialization of a form:

const form = new dhx.Form("form_container", {
rows: [
{
type: "select",
name: "select",
label: "select",
labelWidth: "50px",
width:"200px",
options: [
{
value: "1",
content: "1",
disabled: true
},
{
value: "2",
content: "2"
},
{
value: "3",
content: "3"
},
{
value: "4",
content: "4"
}
]
}
]
});
Properties​

View the full list of configuration properties of the Select control.

Working with Select​

You can manipulate a Select control by using methods or events of the object returned by the getItem() method.

For example, you can get the value of the control:

const value = form.getItem("select").getValue();
Methods​

Check the full list of methods of the Select control.

Events​

Check the full list of events of the Select control.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4