问题描述
我有一个表格行,里面有class ='highlightedrows''我试图使用
$(。highlightedrows)。effect(highlight,{},1500);
但是这给了我一个javascript错误'对象不支持这个属性或方法' 6
我正在导入effects.core.js和effects.highlight.js,是因为这种动画方法不适用于表行元素吗?
谢谢,
IGNORE我不会正确导入文件...将删除问题
我刚刚尝试过它,它的工作原理。我指定的唯一jQuery JavaScript文件是:
< script type =text / javascriptsrc =https:/ /ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js\"></script>
< script type =text / javascriptsrc =https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js>< /脚本>
我的JavaScript是:
$('tr')。click(function(){$(this).effect(highlight,{},3000);});
您是否正确指定了这些文件?
I have a table row which has class='highlightedrows' within my html
I am trying to use
$(".highlightedrows").effect("highlight", {}, 1500);
but this gives me a javascript error 'Object does not support this property or method' Code 0 in I.E 6
I am importing effects.core.js and effects.highlight.js, is it because this animate method won't work on a table row element?
Thanks,
IGNORE i wan't importing the file correctly... will delete the question
I have just tried it and it works. The only jQuery JavaScript files I have specified are:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script>
My JavaScript is:
$('tr').click(function(){$(this).effect("highlight", {}, 3000);});
Have you specified the files correctly?
这篇关于JQuery突出显示表格行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!