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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:03:51+00:00 2026-05-24T00:03:51+00:00

I am using jQuery Ui Autocomplete 1.8.14 and I would like to do two

  • 0

I am using jQuery Ui Autocomplete 1.8.14 and I would like to do two things:

Assign an id to the autocomplete. For instance, I might have many autocompletes on page and I’d need a way to identify each. In particular, in the background autocomplete is generating something like

<ul class="ui-autocomplete ui-menu ui-widget ui-widget-content ui-corner-all" role="listbox" aria-activedescendant="ui-active-menuitem" style="z-index: 1; top: 444px; left: 48px; display: block; width: 118px;">

What I would like is to assign and id to the ul tag. The reason why I want to do this is for the following reason…

There is a close event and one of the parameters is ui. In the “select” even this ui is populated with data that is used to create the autocomplete but for the close event, ui is empty. That’s why I would like to have an id on the ul tag in my previous question. If I can get the ui data then I don’t need to bother with setting the id although I would think that it’s a desirable feature regardless.

Hope I was reasonably clear.

EDIT: Apparently, I wasn’t clear enough :). Hopefully, the following will help clarify what I mean:
After an item is selected from the autocomplete, I am using the select event to populate other form elements using the “ui” parameter. That’s working all fine and great.

However, now what I want to do is this, say in the autocomplete I write out an item which exists in the autocomplete. However, I don’t select the item but instead tab to the next form element. What I would like to happen is to check the term entered in the autocomplete, loop through the autocomplete list. If the term entered matches one of the items in the list, I just get the data out of the “object attached” and then populate the form elements accordingly.

  • 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-24T00:03:53+00:00Added an answer on May 24, 2026 at 12:03 am

    Here is a demo that I think does what you want. I suspect there is a better way of doing this though. I literally took the part of the question about TAB and bound an event to that key.

    Note: I have just seen your comment on the question, so will have a look at that demo as well now. So in my demo the JSON data is in a different format, so it might need some tweaking.

    Oh, I’ve just found an existing extension that might already do what you want (from here) Typical! 🙂

    Edit Oh I see, most of the code is already done in your fiddle. All you need to just use $parentItem.data('item.autocomplete');.

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

Sidebar

Related Questions

I'm using JQuery UI's autocomplete widget and would like to have access to the
I am using the jquery autocomplete combobox . I would like it to autosize
I'm using the jQuery Autocomplete plugin and would like to store all the autocomplete
using jquery I have a autocomplete text box like the combobox example on the
I'm using two jquery ui widgets, autocomplete and tabs. They each have their own
I'm using Jorn Zaefferer's Autocomplete query plugin, http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ I have options set so it
I have an autocomplete field which I would like to augment by providing a
I'm implementing a Google Suggest like autocomplete feature for tag searching using jQuery's autocomplete.
I am using jQuery UI Autocomplete to build a search interface. I have defined
would love your thoughts on this one. I am using jQuery autocomplete in a

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.