This topic is locked

dynamically filter a dropdown list by a textfield (onkeyup or change event)

1/21/2014 9:19:48 AM
PHPRunner General questions
Y
YCH author

I would like a visitor of the website to be able to filter a dropdown list by his input in a text field - so filter the dropdownlist instantly (onkeyup/change event of the textbox) by retrieving the listbox items that contain ( and not only start with) the textvalue.
Kindly advise how to proceed.

Yves.

Admin 1/21/2014

Yves,
Lookup wizard with 'Edit box with AJAX popup' is your best bet.

Y
YCH author 1/22/2014



Yves,
Lookup wizard with 'Edit box with AJAX popup' is your best bet.


Sergey,

Thanks for the advice. The aim is just to filter the dropdown (multiline), afterwards on dblckick the values in the filtered dropdown (which stays visible/open) -> do something whatever I want.

The standard Lookup wizard with 'Edit box with Ajax popup' does not give me the same freedom. When I click a value in the dropdown, it does not give me full control _to do something whatever I want_as far as I know. Is there a way round to this? How could for example jquery help me to filter the dropdown (multiline) ?

Admin 1/22/2014

I'm still not 100% sure what you are after but it looks like none of built-in controls can give you this freedom.
My suggestion - find a jQuery control/plugin that does what you need to do and implement it as an Edit plugin.

Here is the article that can help:

http://xlinesoft.com/phprunner/docs/how_to_create_your_own_edit_control.htm