开发者

Addclass not working in IE8 jquery

Addclass isn'开发者_开发问答t workign in IE in the following code:

$("tr").find("td:eq(0)").addClass("header").css("width","300px");
$("tr").find("td:eq(1)").addClass("data").css("width","500px;");


It was bad markup on my part. Didn't close "TD" tags and didn't remove a legacy "CENTER" tag on the page. Thanks all!


$trFind = $("tr").find("td:eq(0)"); $trFind.addClass("header").css("width","300px");

That's how it should work.


Maybe someone will still have the issue and looking for a solution:

jQuery Add and remove Classes not working IE8


see that:

jQuery issue in Internet Explorer 8

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜