Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6102455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:36:58+00:00 2026-05-23T13:36:58+00:00

I have a tagging plugin for jQuery that I’ve installed, and I want to

  • 0

I have a tagging plugin for jQuery that I’ve installed, and I want to couple it with jQuery UI’s autocomplete.

Both of the two plugins work fine independant of each other, but I am having trouble getting them to work together. I’ve enclosed a sample at a jsFiddle.

http://jsfiddle.net/ciel/ecbjG/

If you scroll to the bottom, you can comment out either of the two plugins and the other works fine. But with the tagging plugin enabled, the autocomplete does not function.

I was hoping someone could show me where I am making my mistake.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:36:58+00:00Added an answer on May 23, 2026 at 1:36 pm

    The tagging plugin will replace your text input with the id tags with an input control that has the id tags_tag.

    So after you bind the tagging plugin to the input control you have to bind the autocomplete plugin to tags_tag.

    $('#tags').tagsInput();
    
    $("#tags_tag").autocomplete({
        source: availableTags,
        minLength: 2,
        select: function(event, ui) {
            // something will happen eventually ...
        }
    });
    

    update
    The problem is that the tagging plug-in will add the tag if the input is losing focus (blur event). This event is fired before the autocomplete plugin can set the value of the input. Therefore the plugin takes the currently entered value (e.g. Pyt) and adds it as a tag instead of the selected value (e.g. Python). I have removed the blur event and triggered and keypress (simulating “Enter”) to make this work, but this is totally a hack 🙂 …

    Maybe you want to study the tagging plug-in more deeply. I have seen it has a setting for autocomplete.

    var settings = jQuery.extend({
        ...
        autocomplete: {
            selectFirst: false
        },
        ...
    }, options);
    

    see: http://jsfiddle.net/ecbjG/5/ (updated)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a tagging plugin similar to that of SO. I use jQuery.ui's autocomplete
Im after a plugin to do autocomplete like facebook does in that you can
I have a log file that has a lot of tagging information, i.e, ERROR,
I have polymorphic tagging model and I want to create tag_cloud for it, but
I have a PHP web application which uses a MySQL database for object tagging,
I would like to have pretty URLs for my tagging system along with all
I am hacking up a tagging application for emacs. I have got a tag
Goal: To implement a jQuery plugin for my rails app (or write one myself,
I have successfully set up this plugin before so I am curious as to
I spent all my time yesterday trying to get ANY Rails tagging plugin to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.