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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:31:23+00:00 2026-05-14T05:31:23+00:00

I want to use autocomplete (jquery or .net) with force a choice so that

  • 0

I want to use autocomplete (jquery or .net) with force a choice so that the user must always choose something. There can be no possibility of entry, the user can only choose.

Does anyone know how to do this??

I want to use webservice for this purpose, because the results will be a lot, and I’ll show you the first few.

I want to display text in hidden field after choosing to save the value


I want to use webservice for this purpose, because the results will be a lot, and I’ll show you the first few

  • 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-14T05:31:24+00:00Added an answer on May 14, 2026 at 5:31 am

    Doing this with the jQuery UI widget is going to require a bit of extra work on your part. I suggest that you consider using the non-UI autocomplete plugin with the mustMatch option. Note, though, that if the user has javascript turned off, this will not guarantee that the value of the input is always from your set of options.

    EDIT: Sample parser for the autocomplete plugin. Expects an array of JSON objects of the form:

    [ {
        "FirstName" : "john",
        "LastName" : "smith",
        "Email" : "john-smith@example.com"
      },
      ...
    ]
    

    Autocomplete setup

    $('.selector').autocomplete({
          ...
          parse: function(data) {
                    var array = new Array();
                    for(var i=0;i<data.length;i++)
                    {
                        var datum = data[i];
                        var name = datum.FirstName + ' ' + datum.LastName;
                        var display =  name + ' (' + datum.Email + ')';
                        array[array.length] = { data: datum, value: display, result: name };
                    }
                    return array;
                 },
          ...
    })
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use autocomplete for jQuery in Eclipse. The Aptana Plugin is installed:
I want to use jquery autocomplete in a foreach loop. When using ids, only
I am trying to use jquery autocomplete plugin, I want it to suggest ItemCodes
i want to use jquery ui auto complete plugin in asp.net. this is my
Hey guys i want to use the jquery Autocomplete plugin and instead of separating
I want to use the jquery ui autocomplete plugin with 2 controls, so I
I decided to use jquery-ui Autocomplete Combobox, but until now I didn't noticed that
So I want to use this plugin http://docs.jquery.com/Plugins/autocomplete I want to retrieve all the
I want to use the jquery autocomplete plugin across several input boxes. In order
I want to use jQuery UI's autocomplete as a combobox, as showed in this

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.