I have a listbox which has the property of checkboxes set to true. My goal based on the program I am trying to create is simple: select one item only (check the current selected item and uncheck the rest).
$(“#jqxListBox”).on(‘checkChange’, function (event) {
$(this).jqxListBox(‘uncheckAll’);
$(this).jqxListBox(‘checkItem’, event.args.item.element.innerText);
}
The code above is causing error for “Maximum call stack size” in my end. It works though. Is there an alternative for this?
Note: My code using this guide: http://jsfiddle.net/84h15rb3/ is working. Just wonder why the code above has errors. It seems faster with less coding.