我已经在我的布局视图中加载了jQueryui包,并且执行视图源代码显示它被引用了,但是"autocomplete“没有出现在intellisense中(只有aria-autocomplete?)
当我尝试运行它时,我在Chrome开发工具中得到这个错误:
7
Uncaught TypeError: Object function ( selector, context ) {
// The jQuery object is actually just the init constructor 'enhanced'
return new jQuery.fn.init( selector, context, rootjQuery );
} has no method 'curCSS' jquery-ui-1.8.20.js:142
代码:
<input type="text" id="titleSearch" placeholder="Job title e.g ASP.net Developer"/>
$("#titleSearch").autocomplete({ source: [
"C#",
"ASP.NET",
"Java"
] });
谢谢
发布于 2013-01-05 08:43:15
原来我运行的是最新的jQuery (1.8.3),所以我也需要更新我的jQuery ui (1.9.2)
https://stackoverflow.com/questions/14167176
复制