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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:23:12+00:00 2026-06-16T02:23:12+00:00

$(input#lastname).autocomplete({ source: autocomplete.lastname.php }); I am experiencing a problem where when I use tab

  • 0
        $("input#lastname").autocomplete({
            source: "autocomplete.lastname.php"
        });

I am experiencing a problem where when I use tab to change text boxes the drop down menu is stuck in the down position. What could be done to solve this type of a problem? I already have something like this also:

    $("input#firstname").autocomplete({
      source: "autocomplete.firstname.php"
    }).keyup(function(e) {
      if (e.which === 13) {
        $(".ui-menu-item").hide();
      }
    });

Which is not exactly what I am intending but perhaps it could be modified? I am also noticing that on .hide there is still showing at the bottom remnants of the menu on enter.

Thanks in advance!

  • 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-16T02:23:13+00:00Added an answer on June 16, 2026 at 2:23 am

    It lags because your source is a PHP file, which has to load and process what ever is on there.


    A quick and dirty solution would be an AJAX call on load.

    $(function() {
        var lastnames;
    
        $.get("autocomplete.lastname.php", function(data) {
           lastnames = data;
        });
    
    
        $("input#lastname").autocomplete({
            source: lastnames
        });
    });​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Short version of Problem Autocomplete works when the input string matches the result string,
<form> Last Name <input name=lastname type=text/><br/> First Name <input name=firstname type=text/><br/> Middle Name <input
flagUpdateCustomer = 0; $(input#checknames).click(function () { $.ajax({ url: 'php.scripts/checknames.php', data: { firstname: $(input#firstname).val(), lastname:
Hello I have a form input button as follows : <form:input path=creationUsr.lastName type=text name=creationUsr.lastName
Input: I have a LaTeX file, with plain text & math formulas. Desired output:
I have multiple input fields. <input type='text' size='10' name='firstname' id='firstname' /> <input type='text' size='20'
i'm trying to use ajaxform plugin with php , please help me I couldn't
I use jQuery UI autocomplete widget . Also I have GAE datastore: class Person(db.Model):
I have an input box for searching employee info (attached to a jquery autocomplete),
I have a addstudent.ctp file to add students echo $this->Form->create('Student'); echo $this->Form->input('FirstName'); echo $this->Form->input('LastName');

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.