JavaScript DropDownList Control
Set the filterable property of jQWidgets DropDownList
HTML
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<script src="http://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<div id='jqxDropDownList'></div>
JavaScript
var source = [
"Affogato",
"Americano",
"Bicerin",
"Breve",
"Affogato",
"Americano",
"Bicerin",
"Breve",
"Café Bombón",
"Café au lait"];
// Create a jqxDropDownList
$("#jqxDropDownList").jqxDropDownList({
source: source,
theme: 'energyblue',
filterable: true,
dropDownHeight: 130,
});
// Focus filter on open event
$('#jqxDropDownList').on('open', function (event) {
var filterInput = $('.jqx-listbox-filter-input')[0];
$(filterInput).select();
});