YUI Library Home

YUI Library Examples: AutoComplete Control: Combobox, with CSS for Multiple Stacked Instances

AutoComplete Control: Combobox, with CSS for Multiple Stacked Instances

This "combo box" AutoComplete implementation allows the user to pick an item from a set list or enter a custom value directly into the input field. Please note the following custom CSS:

  • z-index has been applied to support multiple vertically stacked AutoComplete instances
  • the input field and container have been styled to support a button inline to the right

Sample Code

Data:

CSS:

Markup:

JavaScript:

Configuration for This Example

You can load the necessary JavaScript and CSS for this example from Yahoo's servers. Click here to load the YUI Dependency Configurator with all of this example's dependencies preconfigured.

Copyright © 2010 Yahoo! Inc. All rights reserved.

Privacy Policy - Terms of Service - Copyright Policy - Job Openings