I got the code from here
the Code is not working, I have the autoComplete plugin as well, here’s the fiddle link to it.
What’s the problem and how can I solve it?
ok this is what I’ve written in VS
<html>
<head>
<title></title>
<script src="script/jquery-1.6.1.min.js" type="text/javascript"></script>
<script src="script/jquery.autocomplete.js" type="text/javascript"></script>
<script src="script/jquery-ui-1.8.13.custom.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(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>
</head>
<body>
<div>
<input id="tags" type="text" />
</div>
</body>
</html>
and it still doesn’t work, sorry if it’s a stupid mistake !
still doesn’t work
okay,
1) restart VS, it has the tendency to screw up sometimes.
2) you need to include all the jquery you’re going to use not just the UI plug-in
3) remember it’s very important the order in which you include your plug-ins(JQuery should be #1 followed by the other plug-ins)
and keep a debugger, and check what’s happening ! 🙂
good luck