Hello, i am new here, i am searching how to add and select item from multi select in the same time. I tried it with this function, but it dosen’t work.
So please I need your help !
$('#jqxComboBox').on('keypress', function (event) {
if ( event.which == 13 ) {
var i = $("#jqxComboBox").jqxComboBox('val');
if(i.length > 0) {
$("#jqxComboBox").jqxComboBox('addItem',''+i+'');
}
var items = $("#jqxComboBox").jqxComboBox('getItems');
var item = $("#jqxComboBox").jqxComboBox('getItem', items.length-1); // last item added
$("#jqxComboBox").jqxComboBox('selectItem',item.label);
}
});
thanks for your reply