开发者

Is this problem of browser(IE7)

开发者 https://www.devze.com 2023-01-15 04:16 出处:网络
This is the dynamic example jsFiddle dynamic DEMO CLICK ME andThis is static example jsFiddle static DEMO CLICK ME

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

精彩评论

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