Toc
0 results found
Seven Chen
Jquery Ui - 添加Input & 自动补全
2010/04/18 AJAX

`var availableTags = [“上海”,”北京”,”c++”, “java”, “php”, “coldfusion”, “javascript”, “asp”, “ruby”, “python”, “c”, “scala”, “groovy”, “haskell”, “perl”]; $(function() { $(“input#add”).click(function(){ addSpot(this); }); });function addSpot(obj) { $(‘div.ui-widget’).append(‘‘); $(“input.ii”).autocomplete({ source: availableTags });};

`

本文作者:Seven Chen
版权声明:本文首发于Seven Chen的博客,转载请注明出处!