开发者

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

开发者 https://www.devze.com 2023-03-31 16:26 出处:网络
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.

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

精彩评论

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