I'm using codeigniter and i've created a simple input with jquery ui autocomplete to show some results.
I'm just doing tests just to be sure that i could use this tool.
I've done this:
//in head
<script src="/js/jquery-1.9.1.js"></script>
<script src="/js/jquery-ui.js"></script>
//in body
<script type="text/javascript">
$(function() {
var tags = [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",
"COBOL",
"ColdFusion",
"Erlang",
"Fortran",
"Groovy",
"Haskell",
"Java",
"JavaScript",
"Lisp",
"Perl",
"PHP",
"Python",
"Ruby",
"Scala",
"Scheme"
];
$("#autocomplete").autocomplete({
source: tags
});
});
</script>
<input id="autocomplete" />
but this is displaying no results!
In chrome dev tools -> network, i see that a request is done and is also getting status 200. So, why this is not displaying results?
In static blank html file with these lines, i'm getting the results!
thanks