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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T14:42:02+00:00 2026-05-17T14:42:02+00:00

I wanna make certain fields in my page to show me like a list

  • 0

I wanna make certain fields in my page to show me like a list of possible finishing sentences just like Google does.

I think this is done via jQuery, but I’m not sure.

The textfield is named commodity.

Let’s say I write General and in the list, array, or DB I have General Commodity I should show me General Commodity under the textfield.

Thanks in advance!

——-UPDATE——-

 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js">
var data = "General Commodity,General Store,General Custer,General Mills".split(",");

    $("#Ccommodity").autocomplete({
            source: data
        });
</script>

When I go to the Ccommodity input textfield I write G and nothing happens, maybe I have some syntax error there.

Thanks for the help

  • 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-17T14:42:02+00:00Added an answer on May 17, 2026 at 2:42 pm

    You will probably want to look into the jQueryUI Autocomplete widget. It has several ways of providing lists of suggestions, and there will almost certainly be something in there that will work for you.

    Here’s a very basic demo: http://jsfiddle.net/QU9st/

    Here’s the source for that:

    $(function() {
        var data = "General Commodity,General Store,General Custer,General Mills".split(",");
        $("#commodity").autocomplete({
                source: data
            });
    });
    

    That demo simply uses a static string array as the datasource, but you can also use remote datasources, in formats like JSON or XML.

    To get it, just drop this somewhere in your <head> tag:

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js"></script>
    

    Of course, you will also need to include jQuery:

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wanna upload/update file by System.IO.FileStream in Google Documents List API(C#)? I use two
I wanna make intro page or popup in website with two buttons accept and
i wanna make an attribute of an element to be unique like primary key.
I just wanna make sure I ain't downloading a RC.
My app is running recording. If i wanna make 2 page views; 1) record
So I wanna make a small (64k) demo--nothing super impressive, just for the coding
I just wanna ask how can I make a form with two buttons that
[Environment: Ubuntu 10.04] I've just finished compiling Linux-2.6.20 and wanna make it work, so
Let say i wanna make a new place in my app (based-on google map
I wanna make a game, just to practice the animations. I want to make

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.