Hi Adarsha,
I prepared a sample which should do the job.
var source = [
"Affogato",
"Americano",
"Bicerin",
"Breve",
"Café Bombón",
"Affogato",
"Americano",
"Bicerin",
"Breve",
"Café Bombón",
"Café au lait"];
// Create a jqxListBox
$("#jqxListBox").jqxListBox({
source: source,
theme: 'energyblue',
selectedIndex: 3,
checkboxes: true
});
$('#jqxListBox').on('checkChange', function (event) {
var args = event.args;
if (args) {
// index represents the item's index.
var index = args.index;
var item = args.item;
if (args.checked) {
// get item's label and value.
var label = item.label;
var value = item.value;
for (var i = 0; i < source.length; i++) {
if (source[i] != label) {
$('#jqxListBox').jqxListBox('uncheckIndex', i);
}
}
}
}
});
Live demo: http://jsfiddle.net/84h15rb3/
Hope this helps.
Best Regards,
Peter Stoev
jQWidgets Team
http://www.jqwidgets.com/