Problems creating a JqueryUI autocomplete field in Squiz


(David Avery) #1

Hi all,

 

I'm trying to implement a jqueryui (autocomplete field using the following code:

 
<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.9.1.js"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">

<script>
$(function() {
var availableTags = [
“ActionScript”,
“AppleScript”,
“Asp”,
“BASIC”,
“C”,
“C++”,
“Clojure”,
“COBOL”,
“ColdFusion”,
“Erlang”,
“Fortran”,
“Groovy”,
“Haskell”,
“Java”,
“JavaScript”,
“Lisp”,
“Perl”,
“PHP”,
“Python”,
“Ruby”,
“Scala”,
“Scheme”
];
$( “#tags” ).autocomplete({
source: availableTags
});
});
</script>

<div class=“ui-widget”>
<label for=“tags”>Tags: </label>
<input id=“tags”>
</div>

 
 
Unfortunately it won't work, and any text typed into the input field yields no results.
I'm completely at a loss as it should be working without any problems.
Any help would be very much appreciated!
 
Many thanks,
 
David

 


(Nic Hubbard) #2

It worked for me. Take a look at: http://jsfiddle.net/Hg4XS


(David Avery) #3

I know it works, as I've tried it on Jquery's site and my own, but for some reason it won't work off of Squiz.


(David Avery) #4

I know it works, as I've tried it on Jquery's site and my own, but for some reason it won't work off of Squiz.


(Nic Hubbard) #5

I know it works, as I've tried it on Jquery's site and my own, but for some reason it won't work off of Squiz.

 

Are you able to show me the site where it is not working? Without that, it is so hard to debug.