# Open the ComboBox When onfocus Is Triggered

## Environment

<table>
 <tr>
  <td>Product</td>
  <td>Progress® Kendo UI® ComboBox for jQuery</td>
 </tr>
 <tr>
  <td>Operating System</td>
  <td>Windows 10 64bit</td>
 </tr>
 <tr>
  <td>Visual Studio Version</td>
  <td>Visual Studio 2017</td>
 </tr>
 <tr>
  <td>Preferred Language</td>
  <td>JavaScript</td>
 </tr>
</table>

## Description

How can I make the dropdown list of a Kendo UI ComboBox open when the user triggers the `onfocus` event?

## Solution

The following example demonstrates how to achieve the desired scenario.

```dojo
  <div id="example">
    <div class="demo-section k-header">
      <h4>Fabrics</h4>
      <input id="fabric" style="width: 400px" />
    </div>
    <script>
    $(document).ready(function() {
        $("#fabric").kendoComboBox({
            dataTextField: "text",
            dataValueField: "value",
            dataSource: [
                { text: "Cotton", value: "1" },
                { text: "Polyester", value: "2" },
                { text: "Cotton/Polyester", value: "3" },
                { text: "Rib Knit", value: "4" }
            ]
        });
    });
    </script>

    <script>
      //Open on focus logic
      $(function() {
        $("[data-role=combobox]").each(function() {
          var widget = $(this).getKendoComboBox();
          widget.input.on("focus", function() {
                widget.open();
          });
        });
      });
    </script>
  </div>
```

## See Also

* [ComboBox JavaScript API Reference](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/combobox)
* [Bypass Boundary Detection](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/bypass-boundary-detection)
* [Configure Deferred Value Binding](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/deferred-value-binding)
* [Implement Cascading with Local Data](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/cascading-with-local-data)
* [Make Visible Input Readonly](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/readonly-visible-input)
* [Prevent Adding Custom Values](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/prevent-custom-values)
* [Underline Matched Search](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/underline-matched-search)
