开发者

JQuery highlight table row

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜