开发者

Jquery fails on IE7/8/9 works with other browsers

This query is failing on IE7 with error Object Expected. In IE8/9 no error but does not work. In all other modern browsers it work fine.

if (jQuery("#tabs li:eq("+jQuery("#tabs").tabs("option", "selected")+") a").attr("title")=="g开发者_如何学Goooglemap") {loadMap();}
    });


I'm guessing you are using jquery ui tabs so on that guess you might try :

if (jQuery("#tabs li.ui-tabs-selected a").attr("title")=="googlemap") {loadMap();}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜