开发者

jquery autocomplete() is not working

<link rel="stylesheet" type="text/css" href="jquery-ui-1.8.2.custom.css" />
<script src="jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="jquery-ui-1.8.2.custom.min.js" type="text/javascript">开发者_如何学Go</script>


<body>
Search: <input id="example" /> 
</body>

<script>
$(document).ready(function(){
var data = "Core Selectors Attributes Traversing Manipulation CSS Events Effects Ajax Utilities".split(" ");
$("#example").autocomplete(data);
});
</script>


Since your example is straight from the Autocomplete plugin page, I'm guessing that's the plugin your attempting to use. You'll need to download it and put it someplace where your code can use it.

<script src="http://code.jquery.com/jquery-latest.js"></script>
<!-- You'll want to change this next line to your local copy of the plugin. -->
<script src="jquery.autocomplete.js"></script> 

Search: <input id="example" /> 

<script>
$(document).ready(function(){
var data = "Core Selectors Attributes Traversing Manipulation CSS Events Effects Ajax Utilities".split(" ");
$("#example").autocomplete(data);
});
</script>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜