# Getting Started with the ComboBox

This guide demonstrates how to get up and running with the Kendo UI for jQuery ComboBox.

After the completion of this guide, you will be able to achieve the following end result:

```dojo
  <input id="combobox" />
  <script>
  $("#combobox").kendoComboBox({
    dataSource: [
      { id: 1, name: "Apples" },
      { id: 2, name: "Oranges" }
    ],
    dataTextField: "name",
    label: { 
      content: "Fruits",
      floating: true 
    },
    clearButton: false
  });
</script>
```

## 1. Create an input Element

First, create an `<input>` element on the page that will be used to initialize the component.

```html
<input id="combobox" />
```

## 2. Initialize the ComboBox

In this step, you will initialize the ComboBox from the `<input>` element. Upon its initialization, the ComboBox wraps the `<input>` element with a `<span>` tag.

```html
<input id="combobox" />

<script>
    // Target the input element by using jQuery and then call the kendoComboBox() method.
    $("#combobox").kendoComboBox({
      // Add some basic configurations such as a clear button.
      clearButton: false
    });
</script>
```

## 3. Specify the Data Source

Here, you will specify a [`dataSource`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/combobox/configuration/datasource) configuration for the component which is used to display the list of values.

```html
  <input id="combobox" />

  <script>
  $("#combobox").kendoComboBox({
    // Add an array of elements to the DataSource.
    dataSource: [
      { id: 1, name: "Apples" },
      { id: 2, name: "Oranges" }
    ],
    dataTextField: "name", //The field of the data item that provides the text content of the list items.
    clearButton: false
  });
</script>
```

## 4. Apply Some Styling

The ComboBox provides several options that enable you to modify its appearance. In this example, you will apply a flat [`fillMode`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/combobox/configuration/fillmode) configuration to the component.

```html
<input id="combobox" />

<script>
    $("#combobox").kendoComboBox({
      dataSource: [
        { id: 1, name: "Apples" },
        { id: 2, name: "Oranges" }
      ],
      dataTextField: "name",
      clearButton: false,
      fillMode: "flat" // Apply a flat fillMode.
    });
</script>
```

## 5. Configure the Label

The ComboBox enables you to configure its label by using its [`label`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/combobox/configuration/label) property.

```html
<input id="combobox" />

<script>
    $("#combobox").kendoComboBox({
        dataSource: [
          { id: 1, name: "Apples" },
          { id: 2, name: "Oranges" }
        ],
        dataTextField: "name",
        clearButton: false,
        fillMode: "flat",
        label: { 
          content: "Customers", // Specify the label content.
          floating: true // Allow the label to float.
        }
    });
</script>
```

## Next Steps

* [Referencing Existing Component Instances](https://www.telerik.com/kendo-jquery-ui/documentation/intro/widget-basics/events-and-methods)
* [Demo Page for the ComboBox](https://demos.telerik.com/kendo-ui/combobox/index)

## See Also

* [JavaScript API Reference of the ComboBox](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/combobox)
* [Knowledge Base Section](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base)
