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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:58:10+00:00 2026-06-14T22:58:10+00:00

I am using a auto complete to my textbox. I want the ID retrieved

  • 0

I am using a auto complete to my textbox. I want the ID retrieved to my json should be store in hidden textbox id=”special” saved as comma separated. Suppose what so ever value I select in autosuggestion its id should get store in hidden textbox separated as comma.
How can I minimize this piece of code. I am new with jquery.

$(".artist").focus().autocomplete( '<?php echo HTTP_PATH . '/artists/getArtistList'; ?>', {
            multiple: true,
            mustMatch: true,
            matchContains: true,
            scroll: true,
            minChars: 0,
            autoFill: true,
            dataType: "json",
            parse: function(data) {
                return $.map(data, function(item) {
                    return { data: item, value: item.name, result: item.name};
                });
            },
            formatItem: function(item) {
                return item.name;
            },
            formatResult: function(item) {
                return item.id;
            },
            formatMatch: function(item) {
                return item.name;
            } 
        });
  • 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-14T22:58:11+00:00Added an answer on June 14, 2026 at 10:58 pm

    Are you using jQuery UI or are you using a different plugin? If you are using jQuery UI then you can refer to http://jqueryui.com/autocomplete/#remote-jsonp

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

Sidebar

Related Questions

I'm using an AutoCompleteCustomSource for a TextBox in Append auto-complete mode. This works as
I want to implement auto-complete on a textbox in a Windows 8 UI /
I want to use AutoCompleteExtender with textbox to auto complete user's entry from mysql
I'm using auto-complete and yasnippet in Emacs and I am confused by their settings.
Guys i am very new to jQuery. I have started using the auto complete
I am using jQuery's auto-complete plugin for a simple search form. I am having
Is there a way to turn off auto-complete on an input-field using jQuery? Like
I have a project that require me to do a auto complete search using
I'm using Youtube API, I'd like to have a search auto-complete feature, just like
I'm using for my projects a rather complete UI auto-generation tool from database entities

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.