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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:59:43+00:00 2026-06-10T16:59:43+00:00

My auto YUI autocomplete zindex is off. How can I force the autocomplete DIV

  • 0

My auto YUI autocomplete zindex is off. How can I force the autocomplete DIV to the top.

enter image description here

Below I am using a standard template for YUI:

YAHOO.util.Event.onDOMReady(function(){
YUI().use(“autocomplete”, “autocomplete-filters”, “autocomplete-highlighters”, function (Y) {
var inputNode = Y.one(‘#name’),
tags = [
‘css’,
‘css3’,
‘douglas crockford’,
‘ecmascript’,
‘html’,
‘html5’,
‘java’,
‘javascript’,
‘json’,
‘node.js’,
‘pie’,
‘yui’
],
lastValue = ”;

        inputNode.plug(Y.Plugin.AutoComplete, {
                activateFirstItem: true,
                minQueryLength: 0,
                queryDelay: 0,
                source: tags,
                resultHighlighter: 'startsWith',
                resultFilters: ['startsWith']
        });

        // When the input node receives focus, send an empty query to display the full
        // list of tag suggestions.
        inputNode.on('focus', function () {
                inputNode.ac.sendRequest('');
        });

        // When there are new AutoComplete results, check the length of the result
        // list. A length of zero means the value isn't in the list, so reset it to
        // the last known good value.
        inputNode.ac.on('results', function (e) {
                if (e.results.length) {
                        lastValue = inputNode.ac.get('value');
                } else {
                        inputNode.set('value', lastValue);
                }
        });

        // Update the last known good value after a selection is made.
        inputNode.ac.after('select', function (e) {
                lastValue = e.result.text;
        });
});

});

  • 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-10T16:59:45+00:00Added an answer on June 10, 2026 at 4:59 pm

    Simply to put the z-index in the css. Setting via JS used to be allowed, but as of YUI 3.4.0 it’s a css-only flag (https://github.com/yui/yui3/blob/master/src/autocomplete/HISTORY.md).

    The relevant CSS is (adjust your z-index as necessary):

    .yui3-aclist { z-index: 100; }
    

    PS., your YAHOO. line is from YUI2, so that is quite peculiar and definitely not a standard template.

    By the time your callback in the YUI().use(…) section is called, the dom should be ready. No ondomready required.

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

Sidebar

Related Questions

Auto-binding of request params seems like default behaviour, but I can't find a lot
So Eclipse can auto-format my css files under Source->Format, or by hitting Cntl-Shift-F. When
I am trying to auto fill and submit the form using cURL, the code
How to auto generate id for child div in JQuery. Please help me so
I auto generated an xsd file from the below xml and used xsd2code to
Jquery auto refresh is using up a LOT of browser memory. Is there a
Is there any auto increment property for field in Oracle without using sequence and
I'm using a goog.ui.toolbar to create a horizontal navigation menu at the top of
I would like to auto-rotate the top and bottom bars of the navigation view
I'm using auto-complete-mode. It works fine in many major modes. But I don't like

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.