Hello! I do not understand what the problem is. JS and autocomplit library is connected.
<link id="bs-css" href="css/bootstrap-cerulean.min.css" rel="stylesheet"> <link href="css/charisma-app.css" rel="stylesheet"> <link href='bower_components/bootstrap-tour/build/css/bootstrap-tour.min.css' rel='stylesheet'> <link rel="stylesheet" href="bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" /> <link href='bower_components/chosen/chosen.min.css' rel='stylesheet'> <link rel="stylesheet" href="js/autocomplete/jquery.auto-complete.css"> <script src="bower_components/jquery/jquery.js"></script> In the head tag;
<script type="text/javascript" src="js/autocomplete/jquery.auto-complete.js"></script> <script type="text/javascript" src="moment/moment-with-locales.min.js"></script> <script type="text/javascript" src="bower_components/moment2/moment.min.js"></script> <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script> <script src="bower_components/bootstrap-tour/build/js/bootstrap-tour.min.js"></script> <script type="text/javascript" src="bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script> <script type="text/javascript" src="php/admPan/admPan.js"></script> And before in the script admPan.js lies
$("#cityTK").autoсomplete({}) Error loading page
Uncaught TypeError: $(...).autoсomplete is not a function I do not understand what exactly is wrong. How to fix? Or am I connecting something wrong?
UPD: Forgot to add 1 more library.
<script src="bower_components/chosen/chosen.jquery.min.js"></script> It is also connected before the closing body