5 <title>jQuery UI Autocomplete - Scrollable results</title>
6 <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
7 <script src="../../jquery-1.9.1.js"></script>
8 <script src="../../ui/jquery.ui.core.js"></script>
9 <script src="../../ui/jquery.ui.widget.js"></script>
10 <script src="../../ui/jquery.ui.position.js"></script>
11 <script src="../../ui/jquery.ui.menu.js"></script>
12 <script src="../../ui/jquery.ui.autocomplete.js"></script>
13 <link rel="stylesheet" href="../demos.css">
18 /* prevent horizontal scrollbar */
21 /* IE 6 doesn't support max-height
22 * we use height instead, but this forces the menu to always be this tall
24 * html .ui-autocomplete {
54 $( "#tags" ).autocomplete({
62 <div class="ui-widget">
63 <label for="tags">Tags: </label>
67 <div class="demo-description">
68 <p>When displaying a long list of options, you can simply set the max-height for the autocomplete menu to prevent the menu from growing too large. Try typing "a" or "s" above to get a long list of results that you can scroll through.</p>