开发者

Is this problem of browser(IE7)

This is the dynamic example jsFiddle dynamic DEMO CLICK ME and This is static example jsFiddle static DEMO CLICK ME

When I load markup dynamically into div it is not working in IE7.

But if it is a static it works f开发者_StackOverflow中文版ine.

Yesterday I was unable to state my problem clearly so I made this fiddle.

Please check it out and reply.


This happens because IE6/7 normalize their href attributes. Change the $li selector to search for the file name at the end of the href, like this:

$li = jQuery('#siteMap [href$=' + $lnkStr1 + ']').parents('li');
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜