-
FEATURED COMPONENTS
First time here? Check out the FAQ!
here is the example
http://zkfiddle.org/sample/1sed986/5-combobox-onChange-issue
there are 3 comboitems in combobox
index 0 "Apple"
index 1 "Apple"
index 2 "Apple 3G"
If you select 1 ZK is printing selected index 0, it is because 0th and 1th both have same label.
Any idea how to fix this?
Thanks
AJaidka
Listen to onSelect event also, since onChange only handles text change.
Hi, onChange event can only get the input text value and compare it with all comboitem to check if one of them matched.
Therefore we have no idea the input value should map to which comboitem. You should specify different value and label on comboitem.
Asked: 2012-12-12 20:03:53 +0800
Seen: 61 times
Last updated: Dec 14 '12