Topic: combobox filter (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: cell 3736 |
![]() I want to filter the items in a combo box based on partial, case-insensitive strings in a text box in real time using javascript. I don't know how to do it tho. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
![]() simple, keep all you key=>value mappings in an object, code: comboBox.options = []; // or similar, don't know exactly. Clear the combobox anyhow. for (key in myEntries) { if (shouldBeShown(key)) comboBox.options[length(comboBox.options)] = ... }
|
Paranoid (IV) Inmate From: cell 3736 |
![]() thanks |
Maniac (V) Mad Scientist with Finglongers From: Germany |
![]() I do not understand your question. |
Paranoid (IV) Inmate From: cell 3736 |
![]() nope, i don't want the items that are actually selected, i want all the items that are in the left combobox that is named "selected items" |
Maniac (V) Mad Scientist with Finglongers From: Germany |
![]() if you can't assign an onsumbit handler (which is what I'd do), |
Nervous Wreck (II) Inmate From: |
![]() Edit TP: spam removed
|