Jquery Ui - 添加Input & 自动补全
`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 });};
`