Jquery Ui Autocomplete Strange Behavior
Following is my code: var availableTags = ['ActionScript', 'AppleScript', 'Asp', 'BASIC', 'C', 'C++', 'Clojure', 'COBOL', 'ColdFusion', 'Erlang', 'Fortran', 'Groovy', 'Haskell', 'J
Solution 1:
Try this according to this answer on SO
$("#City").autocomplete({
source: availableTags,
messages: {
noResults: '',
results: function() {}
}
});
Solution 2:
You have to add jquery-ui.css
in your project folder and link it.
Edit the ui-autocomplete
in the above .css and add z-index = 4000
into that. Your dropdown should work fine.
Solution 3:
Anton is right.
Also please note I think it's not a best practice to use some id starting in capital :)
$("#city")
Use this example on fiddle.
Solution 4:
I got same problem and solve it with that annoying tooltip by including default css style file for jquery.ui.
<link rel="stylesheet" href="jquery-ui/themes/base/jquery-ui.min.css" />
Just forgot to do this after including jquery-ui javascript source file jquery-ui.min.js
.
Post a Comment for "Jquery Ui Autocomplete Strange Behavior"