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

  • Home
  • SEARCH
  • 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 7499437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T19:49:39+00:00 2026-05-29T19:49:39+00:00

The autocomplete is outputting data in this format: <ul class=ui-autocomplete ui-menu ui-widget ui-widget-content ui-corner-all>

  • 0

The autocomplete is outputting data in this format:

<ul class="ui-autocomplete ui-menu ui-widget ui-widget-content ui-corner-all">
  <li class="ui-menu-item">
    <a class="ui-corner-all">item 1</a>
  </li>
  <li class="ui-menu-item">
    <a class="ui-corner-all">item 2</a>
  </li>
  <li class="ui-menu-item">
    <a class="ui-corner-all">item 3</a>
  </li>
</ul>

where do I change it to make it output it this way:

<ul class="pageitem">
  <li class="menu">
    <a class="name">item 1</a>
  </li>
  <li class="menu">
    <a class="name">item 2</a>
  </li>
  <li class="menu">
    <a class="name">item 3</a>
  </li>
</ul>

? I even tried to change the jquery script, but it’s too complex for me hehe, what do I need to change?

  • 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-29T19:49:40+00:00Added an answer on May 29, 2026 at 7:49 pm

    You should’t change the classes. jQuery UI uses the classes not only for styling but as selectors to make its widgets work so, if you change them, you no longer have a working plugin.

    Depending on your needs, if you need to style the select at your own will, you should edit the css file provided by jQuery, or add classes of your own.

    I repeat, don’t remove those classes…

    If you want to add a span to the LIs, after the anchor, use the callback ‘open’, something like this:

    $( ".selector" ).bind( "autocompleteopen", function(event, ui) {   
       $(this).find('li.ui-menu-item').each(function(index){
          var span = $('<span>');
          $(span).text('whatever you want');
          $(this).append($(span)); 
       });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im using this jquery autocomplete plugin. The data format for autocomplete is like the
My autocomplete results for each item looks something like this: <h3>Celebrity Sweepstakes</h3><p>0 episodes</p> But
jQuery autocomplete plugin sent request like this mysite.com/suggestion?term=Sadegh is there any way to change
I have a Jquery Autocomplete menu with an image at the bottom of it
I am using jQuery autocomplete. Here is my HTML <input class=autocomplete_input> JS $(.autocomplete_input).autocomplete({ source:
I want to use autocomplete-fields that link to an external source for their autocomplete-data.
Autocomplete inputs make life easier. However, I am working on a project where the
I have problem with Autocomplete, it works well in all browsers except for IE.
You know how browsers autocomplete text boxes? Apparently this confuses users. They see it
I have a jQuery autocomplete fild which gets existing data from my MVC action.

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.