JQuery突出显示表格行 [英] JQuery highlight table row

查看:96
本文介绍了JQuery突出显示表格行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表格行,里面有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突出显示表格行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆