Orit
Active member
Hi
I'm trying to add a JS function to generate an autocomplete input, but keep getting the error:
I've added the scripts:
and created a new template to add the stylesheet:
Has anyone else got this error? The code works perfectly locally, but not in XENFORO, so I was wondering if there is a conflict somewhere?
Thanks!
I'm trying to add a JS function to generate an autocomplete input, but keep getting the error:
Uncaught TypeError: jQuery(...).autocomplete is not a function
I've added the scripts:
HTML:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
and created a new template to add the stylesheet:
HTML:
<xf:css src="jquery_ui.css" />
Has anyone else got this error? The code works perfectly locally, but not in XENFORO, so I was wondering if there is a conflict somewhere?
Thanks!