-1
我使用joomla 3.6,我安装了一些插件,但我正在为这个jquery插件而苦恼。在控制台它表明我这个错误快速入门jquery插件在网站上显示错误?
TypeError: $(...).ready is not a function: Anonymous
对于需要1.6.1版本的jQuery和jQuery的-UI 1.8.14。但我测试了默认的joomla jquery版本:1.11.2和jquery-UI 1.9.2在一个明确的网站上,它的工作原理。所以jquery版本没有问题。
// Use the .autocomplete() method to compile the list based on input from user
$('#itemCode').autocomplete({
source: '/db/item-data.php',
minLength: 1,
select: function(event, ui) {
我已经在joomla模板的head.php中添加了需要的脚本。
也许脚本jquery lib必须先加载? – Roy
这些脚本是我的头版行代码中的第一个。 – PcWolf