Can't get the inline form to autocomplete


I'm not getting any error message but this code doesn't work when I run it, I don't get any autocomplete pop-downs.

var main = function() {
  var cities = [
 $('.form-inline').autocomplete({source: cities});   


I know hardly a thing about JQuery, but I will try it anyway.

There's probably a comma too much in your cities list, after Venice.


Taking out that comma didn't work :/...


And what about the last };, shouldn't that be });?


you must place these links in the head
<script src=""></script>
<script src="//"></script>
<script type="text/javascript" src="app.js"></script>

this should work


Thank you that solved it! are those jquery libraries?


Yes , in this project they did not put the link of jquery libraries


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.