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 8415521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:28:14+00:00 2026-06-10T01:28:14+00:00

I’m using Loopj Tokeninput plugin and I would like to know if anyone has

  • 0

I’m using Loopj Tokeninput plugin and I would like to know if anyone has implemented the jQuery “combobox” functionality in it? or something similar? The scope is to allow for displaying all the data from a local source by clicking an “arrow down” or just by clicking in the input field just like a dropdown menu (but allowing to narrow it down when typing something…). If so, could anyone share how to implement it?

  • 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-06-10T01:28:16+00:00Added an answer on June 10, 2026 at 1:28 am

    Hey there is no method predefined to do that in tokeninput plugin.. However we can alter the plugin itself to achieve what you need.
    I did some alter to plugin .Do the same change in your jquery.tokenput.js file and see if it works. Open the js file.Search for

    var input_box

    Now goto .focus(function(){}) part of it and and replace it with this.

    if (settings.tokenLimit === null || settings.tokenLimit !== token_count) {
           if (settings.local_data) {
               setTimeout(function() { run_search(''); }, 5);
           } else {
               show_dropdown_hint();
           }
    

    Search for function run_search(query).
    go to else if part of the function and replace it with below one.

    else if (settings.local_data) {
                    // Do the search through local data
                    var results ;
                    if(query==''){
                        results= settings.local_data;
                        }
                        else{
                        results= $.grep(settings.local_data, function(row) {                        
                        return (row[settings.propertyToSearch].toLowerCase().indexOf(query.toLowerCase()) == 0 || row[settings.propertyToSearch].toLowerCase().indexOf(' ' + query.toLowerCase()) > -1);
    
                    });
                    }
    

    We are using onfocus of that input box to return the whole list when the box is in focus and query is empty.if query is not empty then it will search for that query.

    Additionally, if you wants to show a scrollbar in the search results box, you should modify the css of “div.token-input-dropdown” in the token-input.css file as follows:
    – Eliminate or Comment: “overflow: hidden;”
    – Add: “max-height: 150px;” (or whatever max height you want the box to have)
    – Add: “overflow: auto;”

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I would like to count the length of a string with PHP. The string
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Does anyone know how can I replace this 2 symbol below from the string
I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
I'm new to using the Perl treebuilder module for HTML parsing and can't figure

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.