Hi,
I have a list of elements, user has to select only one among them.
but i used jqxcombobox, instead of jqxdropdownlist, because of its autocomplete facility.
but with jqxcombobox, user will have facility not only to select one from the list but also to write something which does not match with any of the elements in the list. To avoid for this condition i add one attribute in jqxcombobox which is selectionMode:’dropDownList’.
var source = [
"Affogato",
"Americano",
"Bicerin",
"Breve",
"Café Bombón",
"Café au lait",
"Caffé Corretto",
"Café Crema",
"Caffé Latte"];
// Create a jqxComboBox
$("#jqxComboBox").jqxComboBox({
source: source,
theme: 'energyblue',
width: '200px',
height: '25px',
selectionMode: 'dropDownList'
});
if user write anything does not match any of the options in list, its automatically fetch the index 0th element. or just enter into combobox and leaves without typing(selecting) anything its also fetch the index 0th element.To avoid this functionality i add ‘Select’ option in
index 0.So user just enter and leave the combobox Select is displayed.
My Question is suppose i select the 3rd index of element and clear the selected element using clearSelection method. after that i enter and leave without select or type anything it fetch previous selected value(3rd index of element) instead of 0th index of element. How to make fetch 0th index of element.