todc / todc-select2

Google-themed fork of Select2. Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.
http://todc.github.com/todc-select2/
Other
112 stars 17 forks source link

Hide selected item in select2. Fix an assignment bug when the top level ... #14

Open xch89820 opened 10 years ago

xch89820 commented 10 years ago

Hide selected item in select2.I think we should hide the item which has been selected. If there are two level data and the top level can not be selected(not id attribute), when we call the the val() function to select a item, the result will selected the top level in old code.