jQuery UI基础----8jQuery UI Widgets-AutoComplete(自动补全

来源:互联网 发布:js style属性 编辑:程序博客网 时间:2024/06/05 21:52
<!DOCTYPE html><html><!--AutoComplete自动补全--><head lang="en">    <meta charset="UTF-8">    <title></title>    <!--所需要的支持文件-->    <script src="jquery-2.1.4.min.js"></script>    <script src="jquery-ui.min.js"></script>    <link href="jquery-ui.min.css" rel="stylesheet" type="text/css">    <!--自己的js文件-->    <script src="AutoComplete.js"></script></head><body>   <label for="tags">Tags:</label>   <input id="tags"></body>

</html>

js:

/** * Created by hao on 2015/10/5. */$(document).ready(function(){var autotags=["iwwww","ijijdifj","oLLLLL","java","occc","ios"];$("#tags").autocomplete({    source:autotags});})
需要依赖的库文件:http://download.csdn.net/detail/zhaihaohao1/9156967

0 0
原创粉丝点击