jQuery autocomplete tagging plug-in like StackOverflow's input tags?

JqueryAutocompleteTags

Jquery Problem Overview


What solutions accomplish the same auto-completion that SO uses for entering tags?

There are plugins that can handle one word but I haven't seen any that handle multiple words.

Jquery Solutions


Solution 1 - Jquery

Solution 2 - Jquery

Bootstrap: If you are using Bootstrap. This is a really good one: Select2

Also, TokenInput is an interesting one. First, it does not depend on jQuery-UI, second its config is very smooth.

The only issue I had it does not support free-tagging natively. So, I have to return the query-string back to client as a part of response JSON.


As @culithay mentioned in the comment, TokenInput supports a lot of features to customize. And highlight of some feature that the others don't have:

  • tokenLimit: The maximum number of results allowed to be selected by the user. Use null to allow unlimited selections
  • minChars: The minimum number of characters the user must enter before a search is performed.
  • queryParam: The name of the query param which you expect to contain the search term on the server-side

Thanks culithay for the input.

Solution 3 - Jquery

This originally answered a supplemental question about the wisdom of downloading jQuery versus accessing it via a CDN, which is no longer present...

To answer the thing about Google. I have moved over to accessing JQuery and most other of these sorts of libraries via the corresponding CDN in my sites.

As more people do this means that it's more likely to be cached on user's machines, so my vote goes for good idea.

In the five years since I first offered this, it has become common wisdom.

Solution 4 - Jquery

Another excellent plugin can be found at https://documentcloud.github.io/visualsearch/

Solution 5 - Jquery

Check this plugin:

How to use AJAX for loading the tags https://stackoverflow.com/a/7662534/1078027

Solution 6 - Jquery

We just open-sourced this jquery plug-in Github: tactivos/jquery-sew.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJoe PhillipsView Question on Stackoverflow
Solution 1 - JqueryDmitriy NesteryukView Answer on Stackoverflow
Solution 2 - JqueryNishantView Answer on Stackoverflow
Solution 3 - JqueryJulianView Answer on Stackoverflow
Solution 4 - JqueryMrchiefView Answer on Stackoverflow
Solution 5 - JqueryboreqView Answer on Stackoverflow
Solution 6 - Jqueryuser1880508View Answer on Stackoverflow