Html DropDownList

Bind to the open event by type:jqxDropDownButton. Author: http://jqwidgets.com Author: http://jqwidgets.com

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='jqxComboBox'></div>

JavaScript

var source = [
    "Affogato",
    "Americano",
    "Bicerin",
    "Breve",
    "Café Bombón",
    "Café au lait",
    "Caffé Corretto",
    "Café Crema",
    "Caffé Latte"];
// Create a jqxDropDownList
$("#jqxComboBox").jqxComboBox({
    theme: 'energyblue',
    width: '200px',
    height: '25px'
});

$('#jqxComboBox').on('open', function (event) {
    var inputValue = $('#jqxComboBox').val();
    $("#jqxComboBox").jqxComboBox({
        source: source
    });
    $('#jqxComboBox').val(inputValue);
});