
Typeahead multiple values only triggered on specific character
- or -
Post a project like this2582
$$
- Posted:
- Proposals: 1
- Remote
- #1991712
- Awarded
Description
Experience Level: Intermediate
I am looking for some sort of jQuery typeahead solution which allows a user to select options from a list but only when they enter a certain trigger character and it should also allow multiple values.
For example:
"red","blue","green","orange"
User types re and nothing should happen as it requires [ to trigger
User types [re and then both red and green should be shown as options
Once the user either selects the option from the list or types it and closes with a ] then they should be able to enter more text including another option and another and so on. So if they then type [bl it should show them blue as an option and allow them to choose it etc.
So the end result might look like "re [red] yellow green [blue]" for example - the result is shown simply as text in a textbox so there is no need for any data extraction afterwards
For example:
"red","blue","green","orange"
User types re and nothing should happen as it requires [ to trigger
User types [re and then both red and green should be shown as options
Once the user either selects the option from the list or types it and closes with a ] then they should be able to enter more text including another option and another and so on. So if they then type [bl it should show them blue as an option and allow them to choose it etc.
So the end result might look like "re [red] yellow green [blue]" for example - the result is shown simply as text in a textbox so there is no need for any data extraction afterwards

Jason D.
100% (68)Projects Completed
115
Freelancers worked with
99
Projects awarded
33%
Last project
26 Mar 2025
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
Typeahead needs to be patched for it. Is your [ fixed static character or that too is configurable plus can it be string or just a single character?
634147
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies