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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:09:31+00:00 2026-06-03T08:09:31+00:00

The Jquery autocomplete ( LINK) has an option to turn it off, which looks

  • 0

The Jquery autocomplete (LINK) has an option to turn it off, which looks like this:

$(input).autocomplete({ disabled: true });

I would like it to be turned off because its default settings is to respond on keyup. I much rather have it function on keydown. So I turned it off and I wrote a function with an event keydown like this:

timer = 0;
function func (){ 

var val = $(input).val();
$(input).autocomplete('search', val);
}


$(input).live('keydown', function(){

    if (timer) {
        clearTimeout(timer);
    }

    timer = setTimeout(func, 50000); 
     $(input).autocomplete( "enable" );
});

It doesn’t work…meaning it does not do search after 50000 ms but instead it does the default setting with keyup. What should I change?

  • 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-03T08:09:33+00:00Added an answer on June 3, 2026 at 8:09 am

    Add a keyup event and stop the event propogation.

    Add a keydown event and call it like this: $("input").autocomplete('search', 'demo-value');

    $(input).autocomplete().keyup(function(event) {
      event.stopPropagation();
    }).keydown(function() {
    $(this).autocomplete('search', $(input).val());  //this or $(input)...
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I´ve got a Jquery autocomplete input like the following: $(#cities).autocomplete(regionIDs, { minChars: 2, width:
I have a jQuery Autocomplete field on an ASP.Net Webform and everything has been
I have a jquery autocomplete field working fine followed by a date input field.
I'm using jQuery autocomplete plugin from jQuery website calling the controller url which return
I use jquery.autocomplete , which uses a javascript regexp to highlight substrings in the
I'm mostly link my scripts to external sites, like ajax.googleapis.com and view.jquery.com. Today, all
I am using JQuery to create additional input fields via clicking a link. Currently,
I am deciding between 2 different autocomplete plugins. jQuery UI autocomplete - link jQuery
I am using jQuery autocomplete. Here is my HTML <input class=autocomplete_input> JS $(.autocomplete_input).autocomplete({ source:
I have inputbox like this: <input type=text id=namecity1 name=city1 /> <input type=hidden id=idcity1 name=idcity1

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.