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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:31:14+00:00 2026-05-23T05:31:14+00:00

I have problem with jquery ui Autocomplete… when i start typing words and while

  • 0

I have problem with jquery ui Autocomplete… when i start typing words and while autocomplete is showing the results it just starts erasing letters before I even finish the word… anyone had this problem?

$(function() {
var rn = Math.floor(Math.random() * 11);
$("#query").autocomplete({
    source: "search.asp?rn=" + rn,
    minLength: 2,
    selectFirst: true,
    delay: 500,
    //autoFocus: true,
    select: function(event, ui) {
        var vp = ui.item.vp;
        var ran = Math.floor(Math.random() * 11);
        if (vp != "-1" && vp != "x") {
            location.href = "menu.asp?rn=" + ran + "&LOC=1&IDP=" + vp;
        }
        else if (vp == 'x') {
            location.href = "result.asp?rn=" + ran + "&term=" + ui.item.value;
        }
    }
});

$.ui.autocomplete.prototype._renderItem = function(ul, item) {
    var sterm = this.term.split(" ");
    $.each(sterm, function(index, value) {
        item.label = item.label.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + $.ui.autocomplete.escapeRegex(value) + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<span style='color: #2779AA;'><strong>$1</strong></span>");
    });
    return $("<li></li>").data("item.autocomplete", item).append("<a>" + item.label + "</a>").appendTo(ul);
};

});

  • 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-23T05:31:15+00:00Added an answer on May 23, 2026 at 5:31 am

    Are you using the autoFocus plugin? I had the same problem and fixed it with the solution described in:

    https://github.com/scottgonzalez/jquery-ui-extensions/issues/1

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

Sidebar

Related Questions

I have some problem with Jquery Autocomplete plugin ( http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ ) I got it
I have a problem with the jquery-autocomplete pluging and my django script. I want
I have problem while using jquery maskedinput with asp.net textbox. I have a check
I have a problem with getting jquery to retrieve results from a WCF service.
I have use rails3-jquery-autocomplete plugin and I am just wondering how can I use
I am trying to use jQuery's fancy autocomplete function but I have a problem
jquery, textbox with autocomplete, change event problem: I have a textbox which is used
I have a problem with jQuery UI autocomplete. I think it comes from the
I am using Jquery Autocomplete . Its workng fine but I have small problem.
I have a problem with Jquery function getJSON, the action url does not trigger

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.