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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:16:39+00:00 2026-06-11T06:16:39+00:00

Looking at jQuery UI auto complete: http://jqueryui.com/demos/autocomplete/ and changing it to meet my requirements,

  • 0

Looking at jQuery UI auto complete: http://jqueryui.com/demos/autocomplete/ and changing it to meet my requirements, I’m coming across some issues.

If you look at the default list at the link provided one of the options is “ActionScript” and if you type “Sc” it suggests “ActionScript” which in my case isn’t suitable.

I only want it to suggest “ActionScript” for example if the user types:

  • A
  • Ac
  • Act
  • Acti
  • Actio
  • Action
  • ActionS
  • ActionSc
  • ActionScr
  • ActionScri
  • ActionScrip
  • ActionScript

“ActionScript” is just an example but it gets the point across.

Looking at the suggest function within jQuery UI auto complete code:

_suggest: function( items ) {
        var ul = this.menu.element
            .empty()
            .zIndex( this.element.zIndex() + 1 );
        this._renderMenu( ul, items );
        // TODO refresh should check if the active item is still in the dom, removing the need for a manual deactivate
        this.menu.deactivate();
        this.menu.refresh();

        // size and position menu
        ul.show();
        this._resizeMenu();
        ul.position( $.extend({
            of: this.element
        }, this.options.position ));

        if ( this.options.autoFocus ) {
            this.menu.next( new $.Event("mouseover") );
        }
    },

I can’t seem to find the part the narrows down the selections. Can someone point me in the right direction? I’m using the most recent stable build.

  • 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-11T06:16:41+00:00Added an answer on June 11, 2026 at 6:16 am
    function hackAutocomplete(){
    
        $.extend($.ui.autocomplete, {
            filter: function(array, term){
                var matcher = new RegExp("^" + term, "i");
    
                return $.grep(array, function(value){
                    return matcher.test(value.label || value.value || value);
                });
            }
        });
    }
    
    hackAutocomplete();
    

    Found this code which solved it.

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

Sidebar

Related Questions

I was looking at the 14 days of jquery http://jquery14.com/day-01/jquery-14 and I saw this
im following the railscasts using jquery tokeninput http://railscasts.com/episodes/258-token-fields-revised in creating autocomplete tag tokens and
I am looking for a nice quick live search/filter. Anybody use this? http://rikrikrik.com/jquery/quicksearch/#usage Also
I am looking for an auto complete jQuery plug which support both tag (like
I'm looking into using the jQuery UI autocomplete widget to implement user lookup by
I have read several articles/questions/forums discussing the best auto-complete plugin for jQuery. After trying
I'm using asp.NET MVC, and am looking at the JQuery autocomplete plugin for what
I am looking for a plugin that provides the autocomplete feature using jQuery Mobile?
I'm looking at this jQuery Autocomplete example . What I can't figure out is
I am looking for a js/jquery plugin for select boxes. Requirements are as following:

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.