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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:34:46+00:00 2026-05-22T22:34:46+00:00

I have the following plan in mind: I have a AutoComplete UI element on

  • 0

I have the following plan in mind:

I have a AutoComplete UI element on my website with several autocomplete options but what i want is the following and i cant get it to work:

if the user hovers (mouseover or arrow-keys) over an item the items text should change into the item value of course and extra information.

To make myself more clear:

If the user Rolls over a movie title in the autocomplete the item should change into the movie title + movielength + moviecover.

And when the item is unfocussed it should get changed into its original state

Here is what i have::

$("#searchField").autocomplete({

    source: dataSet,
    minLength: 1,
    open: function(event, ui) { $(".ui-autocomplete").css({"z-index": 1000, "font-size": "13px"}); },
    focus:function(e,ui) {

        q = $("#ui-active-menuitem").html();
        $("#ui-active-menuitem").html("<b>"+q+"</b>");


    },

    select: function(event, ui) {
        q = $("#ui-active-menuitem").html();
        location.href="?q="+q;
    }

});

Sorry For my english if it is not understandable…

THNX IN ADVANCE

  • 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-22T22:34:47+00:00Added an answer on May 22, 2026 at 10:34 pm
    focus:function(e,ui) {
                $("input").val($("#ui-active-menuitem").text());
                q = $("#ui-active-menuitem").html();
                $("#ui-active-menuitem").html("<b>"+q+"</b>");
    
    
            },
    

    Do you mean something like this?

    When your user hovers over the option in the list it changes the value of the input area?

    here is a working fiddle: http://jsfiddle.net/4nzXv/

        $("#ui-active-menuitem").mouseout(function() {
          $("#ui-active-menuitem").hide();
        });
    

    you can append a mouseout handler to each item, once it is hovered over it will then remove it from the list, however it seems to be pretty crazzy functionality wise, but it achieves what you wanted… here is the fiddle: http://jsfiddle.net/4nzXv/5/

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

Sidebar

Related Questions

I have the following code: http://www.project-vanquish.co.cc/gridtest/drag-grid.html The plan is to allow the user to
I have following situation: I have loged user, standard authentication with DB table $authAdapter
If I have the following code (EDIT: Sorry if I wasn't clear, I want
I have the following script element in my web page: <script src=default.js type=text/javascript></script> Using
I have the following query that I am running on my database server but
I have the following scenario: My page has a dropdown list that allows user
I have the following query: select p from Plan as p where p.location =
I have the following ANTLR grammar: grammar Tasks; options { language = Java; }
I have the following code for use in my asp.net website: CalendarService service =
I have following string String str = replace :) :) with some other string;

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.