开发者

JQuery highlight table row

开发者 https://www.devze.com 2023-02-06 13:44 出处:网络
I have a table row which has class=\'highlightedrows\' within my html I am trying to use $(\".highlightedrows\").effect(\"highlight\", {}, 1500);

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

精彩评论

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