Hi,
i have used $(‘#listbox’).jqxListBox(‘getSelectedItem’) and after three single selections, i see three times the last selected item.
for my code i have to use the getSelectedItem, but i only need it once and not three times, cause i get three times an alert if there is noone selected. here is a snippet:
var listitem = $(‘#listbox’).jqxListBox(‘getSelectedItem’); //get the listitem which is selected
console.log($(‘#listbox’).jqxListBox(‘getSelectedItem’));
if (listitem) {
console.log(listitem.value);
} else {
alert(‘no one is selected’);
}
so i have more than one selected item?
how can i fix this problem?