I have the jquery autocomplete example working on a test page, but can’t seem to get the dropdown list styled. It just shows up as an ordinary ul with li items (not the white background box with a list as in the example). I have tried this alone and with the redmond theme, any thoughts on what I might be doing wrong? I see the redmond stylesheets in firebug, so the page is loading them.
js (working)
$(document).ready(function() {
$("input").autocomplete({
source: ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"]
});
});
css/js includes
<script src="/public/javascripts/jquery-1.6.2.js'"></script>
<script src="/public/javascripts/jquery-ui-1.8.14.custom.min.js"></script>
<script src="/public/javascripts/ac.js"></script> // where the above js is
<script src="/public/javascripts/jquery.tools.min.js"></script>
<link rel="stylesheet" type="text/css" media="print" href="/public/stylesheets/redmond/jquery.ui.all.css"/>
here is the input:
<input name="searchString" type="text" class="searchbox ui-autocomplete" id="autocomplete"/>
(edit: added CSS, overlooked this when writing the question)
Download a theme and include the theme’s CSS.
You can see the themes here, and just download them from the download page by selecting the theme you want in the right-hand bar..
Edit: It looks like you’re using the old jQuery auto-complete plug-in which has been discontinued. You can try the following CSS for that if you wish. I STRONGLY recommend you use the jQuery UI autocomplete however.