Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Prevent duplicate entries and prevent new entries #317

Open
gitcostan opened this issue Aug 2, 2017 · 2 comments
Open

Prevent duplicate entries and prevent new entries #317

gitcostan opened this issue Aug 2, 2017 · 2 comments

Comments

@gitcostan
Copy link

Hello

I read the example mentioned at - https://github.com/sliptree/bootstrap-tokenfield#and-how-about-limiting-tokens-to-my-typeaheadautocomplete-data

But I was not able to prevent.

Pls suggest where these code snippets must be used in the context of the full example. I am trying use this in jQuery autocomplete (not the Twitter one)

Many thanks.

@l1th1um
Copy link

l1th1um commented Sep 21, 2017

+1 for this matter

@hitched97
Copy link

hitched97 commented Sep 25, 2017

Does this help? Typing violet and hitting enter will add the token, typing orange and hitting enter will not.

https://jsfiddle.net/esbfp8q1/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants