Hi.
I created jqxListBox objet by this code: $("#test").jqxListBox({ source: source, checkboxes: true, width: 170, height: 80, theme: theme });
source look like that:
var source = [{"label":"a","value":"1"},{"label":"b","value":"2"},{"label":"c","value":"3"},{"label":"d","value":"4"},{"label":"e","value":"5"},{"label":"f","value":"6"}];
How can i get the selected items?
The “getSelectedItems” methods always receive me one item. var items = $("#test").jqxListBox('getSelectedItems');
If you wish to get the checked items, use the method getCheckedItems.
var items = $("#jqxListBox").jqxListBox('getCheckedItems');
In your case you have only one selected item and multiple checked ones. If you wish to be able to select multiple items, then you have to set the property multiple to true.