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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:07:24+00:00 2026-06-18T12:07:24+00:00

I have some very simple code. Ok the issue is as such, we have

  • 0

I have some very simple code.

Ok the issue is as such, we have a input field, and use jquery autocomplete. We also have on this field keyup function. The idea is that as the user types into this field, further down page, we echo what they are typing.

So if they were to type apple, in another div a span is updated live with word apple. However, we also on this input fire autocomplete using jquery api. So the problem occurs, that is they type:

app and select from autocomplete apple. The keyup has only registered the letters they typed, and so echoes app.

My code for the keyup is as follows:

//business suburb
$("#suburb").keyup(function() 
{
var suburb=$(this).val();
$(".adburb").html(suburb);
return false;
});

Input id is suburb

Preview code is as follows:

<li class="fixed">Suburb:
  <span class="overBit">
   <span id='title' class="adburb">Your Suburb</span>
  </span>
</li>

So my question is, how can I bind the selected autocomplete value as if it was completely typed by user ?

  • 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-18T12:07:25+00:00Added an answer on June 18, 2026 at 12:07 pm

    wack this in somewhere to fire the autocomplete select callback

    
        $( "#suburb" ).on( "autocompleteselect", function( event, ui ) {
          $(".adburb").html($("#suburb").val());
        } );
    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some VERY simple code to return the title for a section header:
I know this might be very easy to some,, I have a simple string
I have set up a very simple code snippet: $string = 'Some random words.
I have some very simple code below that I can't get to validate on
I have the following issue whith this very simple task. I want to create
I am having a strange issue. I have a very simple piece of code
I have a very simple issue. Below is my JSP code , where I
I have a couple of links on some images. The code is very simply
I have some very simple XML: <properties> <property> <name>BobFish</name> <explaination>Bob is a fish.</explaination> </property>
I have a very simple class with some char* members. Is strcat the best

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.