最简单的实现方式: <link type="text/css" href="jquery.autocomplete.css" rel="stylesheet">//这个CSS很重要 <script language='javascript' src="jquery_last.js"></script> <script language='javascript' src="jquery.autocomplete.js"></script>//必不要少的哟 <script language='javascript'> $(function(){ $("#suggest").autocomplete(["c++", "java", "php", "coldfusion", "javascript", "asp"], { width: 320, max: 4, highlight: false, multiple: true, multipleSeparator: " ", scroll: true, scrollHeight: 300 }); }); </script> <form autocomplete="off">//这个鬼东西害我整了好几天 <input type="text" id="suggest" /> </form>
jquery+autocomplate+表单自动完成
最新推荐文章于 2024-06-06 09:43:25 发布