I’m looking to use jquery token input but I need the token list to be separate from the suggestions.
So when you type in a word it will autocomplete, but when the user types , or enter then suggested word will move from that box to an unordered list nearby on the page.
Also the token list (which is not in the input box) still needs to have the x to delete it from the form submission.
Is there a fork that does this?
You could use the onAdd callback to add the token to an
<ul>element and remove the token from the suggestion box. Basically something like:Then on the receiving page, just use the value of
#hidden_token_idswhich should contain the token ids. You should add some logic to manipulate the string value of that field (make it comma-delimited, strip excess commas on token removal, etc.)