jQuery ListBox

Set the multiple property of the jqxListBox. 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>
<select id="Country">
    <option value="United States">United States</option>
    <option selected value="United Kingdom">United Kingdom</option>
    <option value="Afghanistan">Afghanistan</option>
    <option value="Albania">Albania</option>
    <option value="Algeria">Algeria</option>
    <option value="American Samoa">American Samoa</option>
    <option value="Andorra">Andorra</option>
</select>

JavaScript

$("#Country").jqxListBox({
    multiple: true
});
$("#Country").jqxListBox('clearSelection');
$("#Country").jqxListBox('selectIndex', 1 );
$("#Country").jqxListBox('selectIndex', 4 );
$("#Country").jqxListBox('selectIndex', 5 );