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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:40:00+00:00 2026-06-09T21:40:00+00:00

I have a standard jQuery autocomplete setup similar to the below: $(input#autocomplete).autocomplete({ source: source,

  • 0

I have a standard jQuery autocomplete setup similar to the below:

$("input#autocomplete").autocomplete({
    source: source,
    minLength: 5 ,
    select: function( event, ui ) {
         alert(ui.item.value);
    }
});

What I would like is, when the value is chosen, a data-table within the page appears and get populated with data from a database using the value as a search parameter.

So for instance if I select “RED“, the table would then show and display data from a query such as SELECT * FROM TABLE WHERE COLUMN='RED'

The query is simplified but can anyone please point me in the right direction?

  • 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-09T21:40:02+00:00Added an answer on June 9, 2026 at 9:40 pm

    For this purpose you should request a kind of search page which will act as JSON endpoint for e.g.

    $("input#autocomplete").autocomplete({
        source: source,
        minLength: 5 ,
        select: function( event, ui ) {
    
          var _value = ui.item.value;
    
          $.post('services/populate_table.php', // endpoint URL
                 { someParameterToTransmit: _value  }, // some data to transmit
                 function(data) { // on complete handler
                   $('.result').html(data); // populate retrieved data in any form you need
                 } // on complete function
          ); // post
        } // on select (autocomplete)
    }); // autocomplete
    

    Data from endpoint also can be retrieved as JSON.

    You can read documentation for more information about request method.

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

Sidebar

Related Questions

I have the below source that uses the standard jquery, jscrollpane and raphael js
If I have a jQuery plugin using the normal standard of: (function( $ ){
I have a standard list view setup with backbone that looks something like below.
I have a standard select box which I'm populating using jquery by appending options,
I have a mobile site running with jQuery Mobile. I want to have standard
I have a standard table: I want to use jQuery to reformat the table,
I have a standard textbox and I've got jQuery on the page. I want
I have a standard form in mvc4 operation. I use jQuery.post to perform postback
I have standard source code package under Linux which requires to run ./configure make
I have a standard jquery ui accordion and I load content into it using

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.