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

  • SEARCH
  • Home
  • 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 5954011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:54:33+00:00 2026-05-22T17:54:33+00:00

I am trying to implement an autocompletion like Stack Overflow does for tag completion.

  • 0

I am trying to implement an autocompletion like Stack Overflow does for tag completion. however, I tried to view the source and its minified

I am trying to get features like letting the user add any tag, if it exists in the list then fine, or else add it to the database.

Are there examples out there that would show how to get something like this done? or can I somehow view the non minified version of the source?

  • 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-22T17:54:34+00:00Added an answer on May 22, 2026 at 5:54 pm

    I don’t know exactly how to do it, but. .. .

    if you look into this answer: jQueryUI: how can I custom-format the Autocomplete plug-in results?

    you can see there’s a way to fiddle with jQuery’s rendering logic to change how the menu items appear. There’s also an internal jQuery function called renderMenu that actually presents the choices.

    I haven’t tried this but I suppose that by opening up that black box, and either replacing or rejiggering renderMenu and its related functions, you’d be able to do what you want – render just one item, in the actual textbox.

    That is where I would start, anyway.


    EDIT

    I looked into the autocomplete stuff again in jQuery UI. It seems pretty straightforward to replace the menu display logic by inserting a custom response() function.

    Here’s what I did:

    // display the first item in the list of possible completions
    var myResponse =  function( items ) {
        var itemToSuggest, p1, p2;
        if (items.length === 0) {return;}
        itemToSuggest = items[0];
        this.element.val( itemToSuggest );
        p1 = this.term.length;
        p2 = itemToSuggest.length;
        setSelectionRange(this.element[0], p1, p2);
    };
    
    var oldFn = $.ui.autocomplete.prototype._response;
    $.ui.autocomplete.prototype._response = myResponse;
    

    Working example

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

Sidebar

Related Questions

Trying to implement an autocomplete based on this It looks like it's very straight
Im trying to implement something given to me however I've come across an error
I've a webbrowser control and I'm trying implement IDocHostUIHandler in the container. However since
Trying to implement a MSMQ-backed WCF PubSub. I understand that net.msmq is one-way; however
I'm trying to implement a view tracking web service on my website. I'm using
I'm trying to implement auto completion and history in my shell using the GNU
Trying to implement sticky footer but its not working as planned. It throws it
All I am currently trying implement something along the lines of dim l_stuff as
trying to implement a dialog-box style behaviour using a separate div section with all
Trying to implement a rating system of users and postings. What is the best

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.