JavaScript ComboBox

Set the multiSelect property of the jqxComboBox. Author: http://jqwidgets.com

by mark edwards

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

const UNSTRESSED_ER     =       '\u025a'        ;       //      ɚ
const STRESSED_SCHWA    =       '\u028c'        ;       //      ε
const STRESSED_ER       =       '\u025d'        ;       //      ɝ


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